/*  GOOGLE FONTS  */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/*  CSS VARIABLES  */
:root {
    --primary: #5465ae;
    --primary-dark: #3a56d4;
    --primary-light: #4895ef;
    --secondary: #3f37c9;
    --success: #4cc9f0;
    --danger: #f72585;
    --warning: #f8961e;
    --dark: #1e1e2f;
    --gray: #151616;
    --light: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.12);
    --border-radius: 12px;
    --border-radius-sm: 8px;
}

/*  RESET & BASE  */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    background: linear-gradient(135deg, #010727 0%, #2e0b51 100%);
    min-height: 100vh;
    color: var(--dark);
    line-height: 1.6;
    padding: 20px;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== HEADER ===== */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 30px 40px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.3; }
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
}

/* ===== NAVIGATION ===== */
nav {
    margin-top: 20px;
    position: relative;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 20px 0 0;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 30px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    display: inline-block;
}

nav a:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

nav a.active {
    background: white;
    color: var(--primary);
}

/* ===== MAIN CONTENT ===== */
main {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* ===== TYPOGRAPHY ===== */
h1 {
    font-size: 2.2em;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--dark);
}

h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: var(--primary);
    font-weight: 600;
}

h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--dark);
}

p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: var(--gray);
    line-height: 1.8;
}

/* ===== FORMS ===== */
form {
    max-width: 600px;
    margin: 0 auto;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input, textarea, select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius-sm);
    font-size: 1em;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

/* ===== BUTTONS ===== */
button, .btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

button::before, .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:hover::before, .btn:hover::before {
    width: 300px;
    height: 300px;
}

button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

button:active, .btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--gray) 0%, #5a6268 100%);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #3aa8d0 100%);
}

/* ===== CARDS ===== */
.card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary);
}

.card-text {
    color: var(--gray);
    margin-bottom: 10px;
}

/* ===== STATISTICS CARDS ===== */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.stat-card h3 {
    color: white;
    font-size: 1.2em;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-number {
    font-size: 3em;
    font-weight: 700;
    margin: 10px 0;
    line-height: 1;
}

/* ===== FEEDBACK LIST ===== */
.feedback-item {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.feedback-item:hover {
    box-shadow: var(--shadow-md);
    border-left-width: 6px;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.feedback-name {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1em;
}

.feedback-date {
    color: var(--gray);
    font-size: 0.9em;
}

/* ===== RATING STARS ===== */
.rating {
    display: flex;
    gap: 5px;
    margin: 15px 0;
}

.star {
    color: #ffc107;
    font-size: 1.2em;
}

/* ===== ALERTS ===== */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

/* ===== LOADING SPINNER ===== */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== DASHBOARD ===== */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.chart-container {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    color: white;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    header {
        padding: 20px;
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    nav a {
        display: block;
        margin: 10px 0;
        text-align: center;
    }
    
    main {
        padding: 20px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .dashboard {
        grid-template-columns: 1fr;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main {
    animation: fadeIn 0.6s ease-out;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary), var(--secondary));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--primary-dark), var(--secondary));
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.p-20 { padding: 20px; }
.hidden { display: none; }
.visible { display: block; }