/* Main Recipe Manager Styles - Dark Mode */

body {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #1a1a1a;
    color: #e0e0e0;
}

h1 {
    color: #f0f0f0;
    border-bottom: 3px solid #4CAF50;
    padding-bottom: 10px;
}

h2 {
    color: #e0e0e0;
    margin-top: 30px;
    border-bottom: 2px solid #444;
    padding-bottom: 8px;
}

h3 {
    color: #d0d0d0;
    margin-top: 20px;
    margin-bottom: 15px;
}

/* Buttons */
button, .button {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.add-button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 20px;
    display: inline-block;
}

.add-button:hover {
    background-color: #45a049;
}

.submit-btn {
    background-color: #4CAF50;
    color: white;
}

.submit-btn:hover {
    background-color: #45a049;
}

.cancel-btn {
    background-color: #f44336;
    color: white;
}

.cancel-btn:hover {
    background-color: #da190b;
}

.edit-btn {
    background-color: #2196F3;
    color: white;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 3px;
    margin-right: 5px;
}

.edit-btn:hover {
    background-color: #0b7dda;
}

.delete-btn {
    background-color: #f44336;
    color: white;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 3px;
}

.delete-btn:hover {
    background-color: #da190b;
}

/* Tables */
table {
    width: 100%;
    background-color: #2a2a2a;
    border-collapse: collapse;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

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

th {
    background-color: #3a5a3a;
    color: #f0f0f0;
}

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

.actions {
    white-space: nowrap;
}

.no-recipes {
    text-align: center;
    padding: 40px;
    background-color: #2a2a2a;
    border-radius: 5px;
    color: #b0b0b0;
}

/* Messages */
.error-message {
    background-color: #f44336;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.success-message {
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.required {
    color: red;
}

/* Header area */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.user-info {
    background-color: #2a2a2a;
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    color: #e0e0e0;
}

.logout-btn {
    background-color: #555;
    color: white;
    padding: 5px 15px;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
    margin-left: 10px;
}

.logout-btn:hover {
    background-color: #666;
}
