/* =======================
   ADMIN PANEL STYLES
   ======================= */

/* Admin Body */
body.admin-body {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

/* Login Box */
.admin-login-box {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.login-card {
    background: white;
    padding: 60px 50px;
    border-radius: 25px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
    text-align: center;
    max-width: 500px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.login-icon {
    font-size: 5em;
    margin-bottom: 25px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.login-card h2 {
    color: #333;
    margin-bottom: 12px;
    font-size: 2.2em;
    font-weight: 700;
}

.login-card p {
    color: #888;
    margin-bottom: 35px;
    font-size: 1em;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-form input {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    background: #f9f9f9;
}

.login-form input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.08);
}

.btn-admin-login {
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-admin-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.5);
}

.btn-admin-login:active {
    transform: translateY(-1px);
}

.back-link {
    display: inline-block;
    margin-top: 25px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 15px;
}

.back-link:hover {
    color: #764ba2;
    transform: translateX(-3px);
}

/* Admin Dashboard */
.admin-dashboard {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.admin-topbar {
    background: white;
    padding: 25px 35px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-welcome {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-welcome h2 {
    color: #333;
    font-size: 1.8em;
    font-weight: 700;
    margin: 0;
}

.status-badge {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(17, 153, 142, 0.3);
}

.admin-actions {
    display: flex;
    gap: 12px;
}

.btn-view-site, .btn-logout {
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.btn-view-site {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-view-site:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.btn-logout {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(245, 87, 108, 0.3);
}

.btn-logout:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.5);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 25px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.stat-icon {
    font-size: 3.5em;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.stat-info {
    flex: 1;
}

.stat-label {
    color: #888;
    font-size: 0.95em;
    margin-bottom: 8px;
    font-weight: 600;
}

.stat-value {
    color: #333;
    font-size: 2em;
    font-weight: 800;
}

/* Price Editor */
.price-editor {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    overflow: hidden;
}

.editor-header {
    padding: 30px 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.editor-header h2 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 700;
}

.editor-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 3px solid #e0e0e0;
}

.tab-btn {
    flex: 1;
    padding: 22px;
    border: none;
    background: transparent;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    color: #888;
    position: relative;
}

.tab-btn:hover {
    background: rgba(102, 126, 234, 0.08);
    color: #667eea;
}

.tab-btn.active {
    background: white;
    color: #667eea;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.tab-content {
    display: none;
    padding: 40px 35px;
}

.tab-content.active {
    display: block;
}

/* Price Form */
.price-form {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.form-section {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 30px;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    color: #667eea;
    margin-bottom: 25px;
    font-size: 1.4em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.price-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-item label {
    color: #555;
    font-weight: 700;
    font-size: 14px;
    padding: 0;
    margin: 0;
    background: none;
    transform: none;
}

.price-item input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    background: #f9f9f9;
}

.price-item input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.08);
}

.btn-save-prices {
    padding: 20px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
    box-shadow: 0 8px 25px rgba(17, 153, 142, 0.3);
}

.btn-save-prices:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(17, 153, 142, 0.5);
}

.btn-save-prices:active {
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .admin-topbar {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .admin-welcome {
        flex-direction: column;
        gap: 15px;
    }
    
    .admin-actions {
        width: 100%;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .editor-tabs {
        flex-direction: column;
    }
    
    .price-grid {
        grid-template-columns: 1fr;
    }
    
    .login-card {
        padding: 40px 30px;
        margin: 20px;
    }
}

