:root {
    --primary-color: #4F46E5;
    --primary-dark: #3730A3;
    --secondary-color: #1E293B;
    --success-color: #22C55E;
    --warning-color: #EAB308;
    --danger-color: #DC2626;
    --light-color: #F9FAFB;
    --dark-color: #0F172A;
    --text-color: #334155;
    --border-color: #E5E7EB;
    --shadow: 0 3px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 15px 30px rgba(0,0,0,0.1);
    --gradient: linear-gradient(135deg, #6366F1, #4338CA);
}

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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #5A8DEE 0%, #6A5ACD 100%);
    min-height: 100vh;
    padding: 20px;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Header */
header {
    background: var(--gradient);
    color: white;
    padding: 2.8rem;
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white"><polygon points="0,0 1000,40 1000,100 0,100"/></svg>');
    background-size: cover;
}

.header-content {
    position: relative;
    z-index: 2;
}

header h1 {
    font-size: 2.6rem;
    font-weight: 800;
}

header p {
    font-size: 1.15rem;
    opacity: 0.95;
}

.connection-status {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.25);
    padding: 0.5rem 1rem;
    border-radius: 40px;
    backdrop-filter: blur(8px);
}

/* Main */
.main-content {
    padding: 2rem;
    display: grid;
    gap: 2rem;
}

/* Stats Section */
.stats-section {
    background: white;
    border-radius: 14px;
    padding: 1.7rem;
    box-shadow: var(--shadow);
}

.stat-card {
    background: var(--light-color);
    padding: 1.4rem;
    border-radius: 12px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.stat-icon {
    font-size: 2.3rem;
    opacity: 0.85;
}

/* Forms / Sections */
.form-section,
.search-section,
.list-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

/* Inputs */
.form-group input,
.form-group select {
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: 0.25s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: #64748B;
    color: white;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #B91C1C;
}

/* Table */
.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* Modal */
.modal-content {
    background: white;
    border-radius: 18px;
    max-width: 500px;
    width: 92%;
    animation: modalSlideIn .3s ease;
}

/* Notification */
.notification {
    border-radius: 12px;
    padding: 1rem 1.5rem;
    transform: translateX(500px);
    transition: transform .3s ease;
}
