/* GartenBerg Dashboard - Global Styles */

/* Color Scheme - Green for Vegetable Cooperative */
:root {
    --primary-green: #4CAF50;
    --hover-green: #45a049;
    --active-green: #2e7d32;
    --light-green: #e8f5e9;
    --text-dark: #333;
    --border-color: #ddd;
    --warning-orange: #ff9800;
}

/* Base Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    background-color: #f5f5f5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

h1 {
    color: var(--primary-green);
    margin-top: 30px;
    margin-bottom: 15px;
}

h2 {
    color: var(--primary-green);
    margin-top: 25px;
    margin-bottom: 10px;
}

a {
    color: var(--primary-green);
    text-decoration: none;
}

a:hover {
    color: var(--hover-green);
    text-decoration: underline;
}

/* Header with Title and Date */
.dashboard-header {
    background-color: var(--primary-green);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dashboard-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dashboard-date {
    font-size: 14px;
    opacity: 0.9;
}

.logout-form {
    margin: 0;
    padding: 0;
}

.header-logout-button {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.header-logout-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Navigation Menu */
.navigation {
    background-color: var(--active-green);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.navigation li {
    margin: 0;
}

.navigation a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.navigation a:hover {
    background-color: var(--hover-green);
    text-decoration: none;
}

.navigation a.active {
    background-color: var(--primary-green);
    border-bottom: 3px solid white;
}

/* Main Content */
.content {
    background-color: white;
    margin: 20px auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Table Styling */
table {
    border: 1px solid var(--border-color);
    border-collapse: collapse;
    width: 100%;
    margin: 15px 0;
    background-color: white;
}

th, td {
    border: 1px solid var(--border-color);
    padding: 10px;
    text-align: left;
}

th {
    background-color: var(--light-green);
    color: var(--text-dark);
    font-weight: 600;
}

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

tr:hover {
    background-color: var(--light-green);
}

/* Warning Box */
.warning {
    padding: 15px;
    color: white;
    background-color: var(--warning-orange);
    border-radius: 4px;
    margin: 15px 0;
    display: inline-block;
    font-weight: 500;
}

/* Forms and Buttons */
button, input[type="submit"] {
    background-color: var(--primary-green);
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

button:hover, input[type="submit"]:hover {
    background-color: var(--hover-green);
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

input[type="text"], input[type="email"], textarea, select {
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

/* Logo */
.logo {
    max-height: 60px;
    vertical-align: middle;
}

/* Login Form */
.login-container {
    max-width: 400px;
    margin: 60px auto;
    padding: 40px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.login-container h1 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.login-button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    margin-top: 10px;
}

.login-message {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.login-message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.login-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

/* Footer */
footer.app-footer {
    text-align: center;
    color: #888;
    font-size: small;
    margin-top: 2em;
    margin-bottom: 2em;
}
