* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.navbar {
    background: linear-gradient(135deg, #2c5530, #4a7c59);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-brand h1 {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.nav-brand span {
    font-size: 0.9rem;
    opacity: 0.9;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-links a:hover {
    background-color: rgba(255,255,255,0.2);
}

.hero {
    background: linear-gradient(rgba(76, 124, 89, 0.8), rgba(76, 124, 89, 0.8)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23e8f5e8" width="1200" height="600"/><circle fill="%23c8e6c9" cx="200" cy="150" r="50"/><circle fill="%23a5d6a7" cx="800" cy="300" r="80"/><circle fill="%23c8e6c9" cx="1000" cy="100" r="60"/></svg>');
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.flowers-catalog {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.flowers-catalog h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c5530;
}

.flowers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.flower-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.flower-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.flower-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #e8f5e8, #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #4a7c59;
}

.flower-info {
    padding: 1.5rem;
}

.flower-info h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2c5530;
}

.flower-info p {
    color: #666;
    margin-bottom: 0.5rem;
}

.quantity-badge {
    background: #4a7c59;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    display: inline-block;
}

.price-info {
    background: #f8f9fa;
    padding: 1rem;
    text-align: center;
    font-style: italic;
    color: #666;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.close:hover {
    color: #000;
}

.modal-content h3 {
    margin-bottom: 1.5rem;
    color: #2c5530;
    text-align: center;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-content input {
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
}

.modal-content input:focus {
    outline: none;
    border-color: #4a7c59;
}

.modal-content button {
    background: #4a7c59;
    color: white;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-content button:hover {
    background: #2c5530;
}

.dashboard {
    display: none;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.dashboard-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.dashboard-nav button {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.dashboard-nav button.active,
.tab-btn.active {
    background: #4a7c59;
    color: white;
    border-color: #4a7c59;
}

.tab-btn {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: #e9ecef;
    border-color: #4a7c59;
}

.logout-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background: #c82333;
}

.add-flower-btn {
    background: #4a7c59;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: background-color 0.3s;
}

.add-flower-btn:hover {
    background: #2c5530;
}

.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.orders-table th,
.orders-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.orders-table th {
    background: #4a7c59;
    color: white;
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-delivered {
    background: #cce5ff;
    color: #004085;
}

/* Language Switcher Styles */
.language-switcher {
    margin-left: 2rem;
    position: relative;
}

.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-width: 80px;
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.language-toggle .flag {
    font-size: 1.2rem;
    line-height: 1;
}

.language-toggle .lang-code {
    font-weight: 600;
    font-size: 0.8rem;
}

.language-toggle .dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.language-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 150px;
}

.language-dropdown.open .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    width: 100%;
    background: none;
    border: none;
    padding: 0.8rem 1rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #333;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
}

.language-option:hover {
    background: #f8f9fa;
}

.language-option.active {
    background: #4a7c59;
    color: white;
}

.language-option.active:hover {
    background: #2c5530;
}

.language-option .flag {
    font-size: 1.1rem;
    line-height: 1;
}

.language-option .lang-name {
    font-weight: 500;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .language-switcher {
        margin-left: 0;
        margin-top: 0.5rem;
        order: -1;
    }
    
    .language-toggle {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
        min-width: 70px;
    }
    
    .language-menu {
        min-width: 130px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .flowers-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .dashboard-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}
