/* beer.css - Styles for Beer Database Application */
* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    margin: 0;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

header {
    background: #0046ad;
    color: white;
    padding: 20px;
    text-align: center;
}

h1 {
    margin: 0;
    font-size: 2.2rem;
}

.content {
    padding: 30px;
}

/* Table styles */
.table-container {
    overflow-x: auto;
    margin-bottom: 40px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    min-width: 600px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #0046ad;
    position: sticky;
    top: 0;
}

tr:hover {
    background-color: #f5f9ff;
}

tr:nth-child(even) {
    background-color: #fafafa;
}

/* Highlighted row style */
tr.ingredient-highlight {
    background-color: #fffde7; /* Light yellow */
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% { background-color: #fffde7; }
    50% { background-color: #fff9c4; }
    100% { background-color: #fffde7; }
}

.ingredient-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.ingredient-icon {
    font-size: 16px;
}

/* Form styles */
.form-container {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    max-width: 800px;
    margin: 0 auto;
}

.form-title {
    margin-top: 0;
    color: #0046ad;
    border-bottom: 2px solid #0046ad;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

input[type="text"], 
input[type="email"],
textarea,
input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border 0.3s;
}

input[type="text"]:focus, 
input[type="email"]:focus,
textarea:focus,
input[type="file"]:focus {
    border-color: #0046ad;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,70,173,0.2);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

button {
    background: #0046ad;
    color: white;
    border: none;
    padding: 14px 25px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

button:hover {
    background: #00358a;
}

/* Messages */
.message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    font-weight: 500;
}

.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.note {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 5px;
}

.required {
    color: #c62828;
}

.photo-preview {
    max-width: 200px;
    max-height: 200px;
    margin-top: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: none;
}

.photo-upload {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px dashed #ccc;
}

.upload-icon {
    font-size: 24px;
    color: #0046ad;
}

.upload-text {
    flex-grow: 1;
}

/* Approval page specific styles */
.approve-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 20px;
}

.approve-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    padding: 30px;
    max-width: 600px;
    text-align: center;
}

.approve-success {
    color: #2e7d32;
    font-size: 24px;
    margin-bottom: 20px;
}

.approve-error {
    color: #c62828;
    font-size: 24px;
    margin-bottom: 20px;
}

.approve-message {
    font-size: 18px;
    line-height: 1.6;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #0046ad;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border: 2px solid #0046ad;
    border-radius: 4px;
    transition: all 0.3s;
}

.back-link:hover {
    background: #0046ad;
    color: white;
    text-decoration: none;
}

.beer-photo {
    max-width: 100%;
    max-height: 300px;
    margin: 20px auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.photo-instruction {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}