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

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, #FFB6C1 0%, #FFE4B5 100%);
    min-height: 100vh;
}

/* Login Screen */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.logo-admin {
    text-align: center;
    margin-bottom: 30px;
}

.logo-admin h1 {
    font-size: 2rem;
    background: linear-gradient(135deg, #FFB6C1, #FF69B4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.logo-admin p {
    color: #666;
    font-size: 0.9rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #FFB6C1;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FFB6C1, #FF69B4);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-login:hover {
    transform: translateY(-2px);
}

.error-message {
    color: #ff4444;
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
}

/* Dashboard */
.dashboard-container {
    min-height: 100vh;
    background: #f5f5f5;
}

.admin-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 30px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo h2 {
    background: linear-gradient(135deg, #FFB6C1, #FF69B4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
}

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

.user-info {
    color: #666;
    font-weight: 600;
}

.btn-logout {
    padding: 8px 20px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

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

/* Navigation Tabs */
.admin-nav {
    background: white;
    padding: 0 30px;
    display: flex;
    gap: 10px;
    max-width: 1400px;
    margin: 0 auto;
    border-bottom: 2px solid #e0e0e0;
}

.nav-tab {
    padding: 15px 25px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
}

.nav-tab:hover {
    color: #FFB6C1;
}

.nav-tab.active {
    color: #FF69B4;
    border-bottom-color: #FF69B4;
}

/* Main Content */
.admin-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.content-header h3 {
    font-size: 1.8rem;
    color: #333;
}

.btn-refresh {
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

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

/* Calendar */
.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
}

.calendar-controls h4 {
    font-size: 1.3rem;
    color: #333;
}

.btn-nav {
    padding: 8px 15px;
    background: #FFB6C1;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-nav:hover {
    background: #FF69B4;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.calendar-day {
    aspect-ratio: 1;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.calendar-day:hover {
    border-color: #FFB6C1;
    transform: translateY(-2px);
}

.calendar-day.has-orders {
    background: #fff3f5;
    border-color: #FFB6C1;
}

.calendar-day.today {
    background: #FFB6C1;
    color: white;
    font-weight: 700;
}

.calendar-day .day-number {
    font-weight: 600;
    margin-bottom: 5px;
}

.calendar-day .order-count {
    font-size: 0.8rem;
    color: #FF69B4;
    font-weight: 600;
}

.day-orders {
    background: white;
    padding: 20px;
    border-radius: 10px;
    min-height: 200px;
}

/* Orders List */
.filter-controls {
    display: flex;
    gap: 10px;
}

.filter-select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

.orders-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FF69B4;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-weight: 600;
}

.orders-list {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.order-item {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background 0.3s;
}

.order-item:hover {
    background: #f9f9f9;
}

.order-item:last-child {
    border-bottom: none;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.order-id {
    font-weight: 700;
    color: #333;
}

.order-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

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

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

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

.status-preuzeta {
    background: #d1ecf1;
    color: #0c5460;
}

.status-otkazana {
    background: #f8d7da;
    color: #721c24;
}

.order-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    color: #666;
}

.order-detail {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 3px;
}

.detail-value {
    font-weight: 600;
    color: #333;
}

/* Statistics */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.stat-box {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat-box h4 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.2rem;
}

.stat-list {
    list-style: none;
}

.stat-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
}

.stat-list li:last-child {
    border-bottom: none;
}

.revenue-display {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4CAF50;
    text-align: center;
    margin-top: 20px;
}

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

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #333;
}

#orderDetails {
    margin-bottom: 25px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.status-select {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

.btn-primary {
    padding: 12px 30px;
    background: linear-gradient(135deg, #FFB6C1, #FF69B4);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .admin-content {
        padding: 15px;
    }

    .calendar-grid {
        gap: 5px;
        padding: 10px;
    }

    .calendar-day {
        padding: 5px;
        font-size: 0.85rem;
    }

    .orders-stats {
        grid-template-columns: 1fr 1fr;
    }

    .order-details {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .modal-actions {
        flex-direction: column;
    }

    .status-select {
        width: 100%;
    }
}
