/**
 * Tıp Fakültesi Burs Yönetim Programı
 * Ana CSS Dosyası - Modern Tema
 */

/* CSS Variables */
:root {
    --primary-color: #1e40af;
    --secondary-color: #6c757d;
    --success-color: #059669;
    --danger-color: #dc2626;
    --warning-color: #d97706;
    --info-color: #0284c7;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --medical-blue: #1e40af;
    --medical-green: #059669;
    --medical-light-blue: #3b82f6;
    --medical-light-green: #10b981;
    --medical-dark: #1f2937;
    --medical-gray: #64748b;
    
    /* Typography */
    --font-family-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 1rem;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing */
    --spacer: 1rem;
    
    /* Border Radius */
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Base Styles */
body {
    font-family: var(--font-family-sans-serif);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

/* Navbar Styles */
.navbar {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0;
}

/* Remove top margin from body */
body {
    margin: 0;
    padding: 0;
}

.navbar-brand {
    font-weight: var(--font-weight-semibold);
    color: var(--medical-blue) !important;
}

.navbar-nav .nav-link {
    font-weight: var(--font-weight-medium);
    color: var(--medical-gray) !important;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--medical-blue) !important;
}

/* Cards */
.card {
    background-color: #ffffff;
    border: none;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacer);
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.25rem 1.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--dark-color);
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0 !important;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
    border-radius: 0 0 var(--border-radius-xl) var(--border-radius-xl) !important;
}

/* Buttons */
.btn {
    font-weight: var(--font-weight-medium);
    border-radius: var(--border-radius);
    padding: 0.625rem 1.25rem;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--medical-blue) 0%, var(--medical-light-blue) 100%);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--medical-blue);
    color: var(--medical-blue);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--medical-blue);
    color: white;
    transform: translateY(-1px);
}

.btn-outline-dark {
    border: 2px solid var(--medical-gray);
    color: var(--medical-gray);
    background: transparent;
}

.btn-outline-dark:hover {
    background: var(--medical-gray);
    color: white;
    transform: translateY(-1px);
}

/* Form Controls */
.form-control {
    border-radius: var(--border-radius);
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: var(--medical-blue);
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.1);
}

/* Alerts */
.alert {
    border-radius: var(--border-radius-lg);
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border-left: 4px solid var(--info-color);
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-left: 4px solid var(--warning-color);
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}

/* Badges */
.badge {
    font-weight: var(--font-weight-medium);
    padding: 0.375rem 0.75rem;
    border-radius: var(--border-radius);
}

/* Tables */
.table {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.table th {
    background-color: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    font-weight: var(--font-weight-semibold);
    color: var(--dark-color);
}

/* Icons */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--border-radius);
}

.icon-sm {
    width: 2rem;
    height: 2rem;
}

.icon-shape {
    background-color: #f1f5f9;
    color: var(--medical-blue);
}

/* Utilities */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--medical-blue) 0%, var(--medical-light-blue) 100%);
}

.text-primary {
    color: var(--medical-blue) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-info {
    color: var(--info-color) !important;
}

.text-muted {
    color: var(--medical-gray) !important;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

/* Dashboard Specific */
.main-content {
    min-height: calc(100vh - 200px);
    padding-top: 1rem;
    padding-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .main-content {
        padding-top: 0.5rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.3s ease-out;
}

/* Loading States */
.loading {
    display: none !important;
}

.loading.show {
    display: flex !important;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Belge Yükleme Stiller */
.upload-area {
    position: relative;
    border: 2px dashed #e2e8f0;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #f8fafc;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--medical-blue);
    background-color: #dbeafe;
    transform: translateY(-2px);
}

.upload-area.dragover {
    border-color: var(--medical-blue);
    background-color: #dbeafe;
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.upload-area input[type="file"] {
    border: none;
    background: transparent;
    padding: 0.75rem;
    width: 100%;
    cursor: pointer;
}

.upload-area input[type="file"]:focus {
    box-shadow: none;
    border: none;
    outline: none;
}

.upload-status {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
}

.upload-status .text-success {
    color: var(--success-color) !important;
}

.upload-status .text-danger {
    color: var(--danger-color) !important;
}

.upload-status .text-info {
    color: var(--info-color) !important;
}

.document-upload.is-valid {
    border-color: var(--success-color);
    background-color: #f0fdf4;
}

.document-upload.is-invalid {
    border-color: var(--danger-color);
    background-color: #fef2f2;
}

/* Belge Kategorileri */
.card.border-warning {
    border-color: var(--warning-color) !important;
    border-width: 2px !important;
}

.card.border-danger {
    border-color: var(--danger-color) !important;
    border-width: 2px !important;
}

.card.border-info {
    border-color: var(--info-color) !important;
    border-width: 2px !important;
}

.card.border-success {
    border-color: var(--success-color) !important;
    border-width: 2px !important;
}

.bg-warning.bg-opacity-10 {
    background-color: rgba(217, 119, 6, 0.1) !important;
}

.bg-danger.bg-opacity-10 {
    background-color: rgba(220, 38, 38, 0.1) !important;
}

.bg-info.bg-opacity-10 {
    background-color: rgba(2, 132, 199, 0.1) !important;
}

.bg-success.bg-opacity-10 {
    background-color: rgba(5, 150, 105, 0.1) !important;
}

/* Upload Animasyonları */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.upload-area.uploading {
    animation: pulse 1s infinite;
    border-color: var(--info-color);
    background-color: #dbeafe;
}

@keyframes uploadSuccess {
    0% {
        transform: scale(1);
        background-color: #f0fdf4;
    }
    50% {
        transform: scale(1.02);
        background-color: #dcfce7;
    }
    100% {
        transform: scale(1);
        background-color: #f0fdf4;
    }
}

.upload-area.success {
    animation: uploadSuccess 0.6s ease-out;
    border-color: var(--success-color);
    background-color: #f0fdf4;
}

/* Responsive Upload Areas */
@media (max-width: 768px) {
    .upload-area {
        padding: 1rem;
    }
    
    .upload-area input[type="file"] {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
}

/* Form Validation Enhancements */
.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--success-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23059669' d='m2.3 6.73.94-.94 1.38 1.38L7.7 4.09l.94.94L4.25 9.42z'/%3e%3c/svg%3e");
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc2626'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.5 5.5 1 1m0-1-1 1'/%3e%3c/svg%3e");
}