* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #005BA5;
    --primary-dark: #004080;
    --secondary-color: #0ea5e9;
    --accent-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --light-gray: #f8fafc;
    --medium-gray: #e2e8f0;
    --dark-gray: #64748b;
    --text-color: #1e293b;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #005BA5 0%, #0ea5e9 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
    color: var(--text-color);
    position: relative;
}

/* Dekoratif arka plan şekilleri */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
}

.container {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 40px;
    position: relative;
    z-index: 1;
}

h1, h2 {
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

h1 {
    font-size: 28px;
    color: var(--text-color);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 8px;
}

h2 {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 24px;
    color: var(--text-color);
    font-weight: 700;
    text-align: left;
    position: relative;
    padding-bottom: 0;
    border-bottom: none;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 600;
    font-size: 13px;
}

small {
    color: #64748b;
    font-size: 12px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="datetime-local"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
    font-family: inherit;
    color: var(--text-color);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 91, 165, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    width: 100%;
    box-shadow: var(--shadow);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 91, 165, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--dark-gray);
    color: white;
    margin-right: 10px;
}

.btn-secondary:hover {
    background: var(--text-color);
    transform: translateY(-2px);
}

.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-weight: 500;
    border-left: 4px solid;
    font-size: 14px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-color: var(--accent-color);
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-color: var(--danger-color);
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-color: var(--secondary-color);
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-color: var(--warning-color);
}

.exam-list {
    margin-top: 30px;
}

.exam-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 2px solid #e5e7eb;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
}

.exam-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Tıklanabilir sınav kartları */
.exam-selectable {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.exam-selectable:hover {
    transform: translateY(-1px);
    border-color: var(--primary-color);
}

.exam-selectable.exam-selected {
    border-color: var(--primary-color);
    border-width: 2px;
    background: rgba(0, 91, 165, 0.02);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.select-indicator > div {
    border-color: #d1d5db !important;
}

.exam-selected .select-indicator > div {
    border-color: var(--primary-color) !important;
    background: var(--primary-color) !important;
}

.exam-card h3 {
    color: var(--text-color);
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 700;
}

.exam-card p {
    color: var(--dark-gray);
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.exam-card .exam-date {
    font-weight: bold;
    color: var(--text-color);
}

.status-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    margin-top: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.status-registered {
    background: linear-gradient(135deg, var(--accent-color), #059669);
    color: white;
}

.status-available {
    background: linear-gradient(135deg, var(--secondary-color), #2563eb);
    color: white;
}

.status-blocked {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
    color: white;
}

.nav-links {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--medium-gray);
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 20px;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-links a:hover {
    background: var(--light-gray);
    color: var(--primary-dark);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 25px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

table th,
table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--medium-gray);
}

table th {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

table tr {
    transition: all 0.2s ease;
}

table tr:hover {
    background: var(--light-gray);
}

table tr:last-child td {
    border-bottom: none;
}

.search-box {
    margin-bottom: 30px;
}

.search-box input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--medium-gray);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.search-box input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Responsive tasarım */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .container::before {
        font-size: 40px;
        width: 60px;
        height: 60px;
        top: -20px;
    }
    
    h1 {
        font-size: 1.8em;
        margin-top: 10px;
    }
    
    h2 {
        font-size: 1.4em;
        margin-top: 30px;
    }
    
    .nav-links a {
        display: block;
        margin: 15px 0;
    }
    
    .btn {
        padding: 12px 24px;
    }
    
    table {
        font-size: 14px;
    }
    
    table th,
    table td {
        padding: 10px;
    }
}

/* Yükleniyor animasyonu */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* İkonlar için stil */
.icon {
    display: inline-block;
    margin-right: 8px;
}

/* Checkbox ve radio stillleri */
input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: var(--secondary-color);
}

/* Grid layout */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 24px 20px;
        margin: 20px auto;
        border-radius: 12px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 18px;
        margin-top: 24px;
    }
    
    .exam-card {
        padding: 20px;
    }
    
    .exam-card h3 {
        font-size: 16px;
    }
    
    .exam-card p {
        font-size: 13px;
    }
    
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    input[type="datetime-local"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Admin paneli ek stiller */
.stats-card {
    background: linear-gradient(135deg, var(--light-gray) 0%, white 100%);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stats-card h3 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 800;
}

.stats-card p {
    color: var(--dark-gray);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Buton grubu */
.btn-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn-group .btn {
    flex: 1;
    min-width: 200px;
}

@media (max-width: 768px) {
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        width: 100%;
    }
}
