* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Auth Forms */
.auth-form {
    background: white;
    max-width: 500px;
    margin: 50px auto;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.auth-form h2 {
    color: #f59e0b;
    margin-bottom: 25px;
    text-align: center;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f59e0b;
}

.form-help {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 0.85rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary {
    background: #f59e0b;
    color: white;
}

.btn-primary:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245,158,11,0.4);
}

.btn-secondary {
    background: white;
    color: #f59e0b;
    border: 2px solid #f59e0b;
}

.btn-secondary:hover {
    background: #f59e0b;
    color: white;
    transform: translateY(-2px);
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-download {
    background: #10b981;
    color: white;
}

.btn-download:hover {
    background: #059669;
}

.btn-delete {
    background: #ef4444;
    color: white;
}

.btn-delete:hover {
    background: #dc2626;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.auth-link a {
    color: #f59e0b;
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

.error-message,
.success-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
}

.error-message {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.success-message {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.info-banner {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: center;
}

.info-banner a {
    color: white;
    text-decoration: underline;
    font-weight: bold;
}

/* Layout */
.mobile-header {
    display: none;
    background: #f59e0b;
    padding: 15px 20px;
    color: white;
    align-items: center;
    gap: 15px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hamburger {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px;
}

.mobile-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 20px;
}

.notes-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

.sidebar-header h2 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.sidebar-header p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.nav-menu {
    list-style: none;
    padding: 20px 0;
}

.nav-menu li {
    margin-bottom: 5px;
}

.nav-menu li.divider {
    border-top: 1px solid #e0e0e0;
    margin: 15px 0;
}

.nav-menu a {
    display: block;
    padding: 15px 25px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-menu a:hover {
    background: #f5f5f5;
    color: #f59e0b;
    padding-left: 30px;
}

.nav-menu a.active {
    background: #f59e0b;
    color: white;
    border-left: 4px solid #d97706;
}

.main-content {
    margin-left: 280px;
    padding: 30px;
    min-height: 100vh;
}

.main-content h1 {
    color: white;
    margin-bottom: 30px;
    font-size: 2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card h3 {
    color: #f59e0b;
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.upload-card {
    max-width: 800px;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2rem;
    color: #f59e0b;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    color: #888;
    font-size: 0.95rem;
}

.stat-box {
    text-align: center;
    padding: 20px;
}

.stat-box .stat-number {
    font-size: 2.5rem;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.full-width {
    grid-column: 1 / -1;
}

.stats-list {
    list-style: none;
    padding: 0;
}

.stats-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-list li:last-child {
    border-bottom: none;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.data-table th {
    background: #f8f9fa;
    color: #f59e0b;
    font-weight: 600;
}

.data-table tr:hover {
    background: #fffbeb;
}

.notes-table-container {
    overflow-x: auto;
}

.note-desc {
    color: #888;
    font-size: 0.9rem;
    display: block;
    margin-top: 5px;
}

/* Badges */
.exam-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
}

.exam-kpss {
    background: #dbeafe;
    color: #1e40af;
}

.exam-yds {
    background: #f3e8ff;
    color: #6b21a8;
}

.exam-aktüerlik {
    background: #dcfce7;
    color: #15803d;
}

.download-badge {
    background: #f0f9ff;
    color: #0369a1;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Actions */
.action-buttons {
    display: flex;
    gap: 5px;
}

/* Filter Form */
.filter-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

/* File Preview */
.file-preview {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.file-preview p {
    margin: 5px 0;
}

/* Tips */
.tips-list {
    list-style: none;
    padding: 0;
}

.tips-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.tips-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 1.2rem;
}

/* No Data */
.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.no-data .btn {
    margin-top: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 20px 15px;
    }

    .main-content h1 {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .auth-form {
        margin: 20px auto;
        padding: 25px;
    }

    .data-table {
        font-size: 0.9rem;
    }

    .data-table th,
    .data-table td {
        padding: 8px;
    }

    .notes-table-container {
        overflow-x: auto;
    }

    .action-buttons {
        flex-direction: column;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .main-content h1 {
        font-size: 1.3rem;
    }

    .auth-form h2 {
        font-size: 1.5rem;
    }

    .auth-icon {
        font-size: 2.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}