/* Front-End Stil Dosyası */
:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --bg: #f8f9fa;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: #1f2937;
}

/* Main Content */
.main-content {
    padding: 40px 0;
    min-height: 60vh;
}

/* Form Card */
.form-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 40px;
    margin-bottom: 30px;
}

.form-card-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #dbeafe;
}

.form-card-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.form-card-header h1 i {
    color: var(--primary);
    margin-right: 8px;
}

.form-card-header p {
    color: #6b7280;
    margin: 0;
    font-size: 14px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Sonuç Sayfası */
.sonuc-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 40px;
}

.sonuc-header {
    margin-bottom: 25px;
}

.sonuc-icon {
    font-size: 56px;
    margin-bottom: 15px;
}

.sonuc-icon.text-success { color: #16a34a !important; }
.sonuc-icon.text-danger { color: #1e40af !important; }
.sonuc-icon.text-warning { color: #d97706 !important; }

/* Sayaç */
.sayac-container {
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
    border-radius: 12px;
    padding: 20px;
}

.sayac-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7280;
    margin-bottom: 5px;
}

.sayac {
    font-size: 48px;
    font-weight: 800;
    color: #1e40af;
    font-family: 'Courier New', monospace;
}

/* Veznedar Bilgi */
.veznedar-bilgi {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 20px;
}

.veznedar-bilgi h5 {
    color: #1e40af;
    margin-bottom: 15px;
    font-size: 16px;
}

.veznedar-bilgi .table {
    margin-bottom: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.veznedar-bilgi .table th {
    width: 120px;
    background: #f9fafb;
    font-weight: 600;
}

/* Dekont Upload */
.dekont-upload {
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 10px;
    padding: 20px;
}

.dekont-upload h5 {
    color: #334155;
    font-size: 15px;
}

/* Tamamlandı */
.tamamlandi-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 60px 40px;
}

.tamamlandi-icon {
    font-size: 72px;
    color: #16a34a;
    margin-bottom: 20px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.tamamlandi-card h2 {
    color: #111827;
    margin-bottom: 15px;
}

/* Alert */
.alert-danger ul {
    padding-left: 20px;
}

/* Header/Footer - MASAK Orijinal */
#header {
    background-color: #222d56;
}

.ministry-logo {
    float: left;
}

.ministry-logo img {
    max-height: 5rem;
}

@media (max-width: 991.98px) {
    .ministry-logo img {
        max-width: 16rem;
        max-height: 4.5rem;
    }
}

#mobile-menu-button {
    text-decoration: none;
    font-size: 1rem;
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    text-align: center;
    color: #fff;
    margin: 2rem 0;
    background: none;
    border: none;
    cursor: pointer;
}

.header-container {
    background-repeat: no-repeat;
    background-position: 100% 0;
    padding-right: 10rem;
}

@media (min-width: 992px) {
    .header-container {
        margin-right: -1rem;
        margin-top: -1rem;
        padding-top: 1rem;
    }
}

.header-language-menu {
    float: right;
    padding-left: 0;
    margin: 0.9rem 1.5rem;
    list-style: none;
}

.header-language-menu li {
    display: inline-block;
    padding-right: 0.5rem;
}

.header-language-menu a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

#main-menu {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
    float: right;
}

#main-menu > li {
    position: relative;
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    padding-left: 0.75rem;
}

#main-menu > li > a {
    color: #fff;
    text-transform: uppercase;
    padding: 0 0 0.5rem;
    display: inline-block;
    text-decoration: none;
}

#main-menu li a {
    white-space: nowrap;
    text-decoration: none;
}

#main-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
}

#main-menu .sub-menu {
    z-index: 24;
    position: absolute;
    top: 1.75rem;
    opacity: 0;
    visibility: hidden;
    list-style-type: none;
    padding: 0.5rem;
    background-color: #fff;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-top: 3px solid #c99b63;
}

#main-menu .sub-menu a {
    display: block;
    color: #495057;
    min-width: 12rem;
    font-size: 0.875rem;
    font-weight: 400;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    transition: background-color 0.2s;
}

#main-menu .sub-menu a:hover {
    background-color: #e9ecef;
}

#main-menu .sub-menu .sub-menu {
    left: 100%;
    top: 0;
    margin-top: -0.5rem;
}

#header .search-form {
    position: relative;
    margin-bottom: 0.75rem;
}

#header .search-form .search {
    background-color: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    width: 12rem;
    height: 40px;
    border-radius: 20px;
    font-size: 0.85rem;
}

#header .search-form .search:focus {
    outline: 0;
    width: 14rem;
    border-color: rgba(255,255,255,0.6);
}

#header .search-form .search-btn {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    font-size: 11px;
    position: absolute;
    right: 5px;
    top: 50%;
    margin-top: -0.9rem;
    background-color: rgba(34,45,86,0.5);
    color: #fff;
    border: 0;
    cursor: pointer;
}

/* Mobil menü */
@media (max-width: 1199px) {
    #main-menu {
        float: none;
        display: none;
        padding: 1rem 0;
    }

    #main-menu > li {
        display: block;
        padding: 0;
    }

    #main-menu > li > a {
        padding: 0.5rem;
        display: block;
    }

    #main-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        display: none;
        background: rgba(40,53,101,0.3);
        box-shadow: none;
        border-top: none;
    }

    #main-menu .sub-menu a {
        color: #fff;
        min-width: auto;
    }
}

@media (min-width: 1200px) {
    .d-xl-block { display: block !important; }
    .d-xl-none { display: none !important; }
    .float-xl-end { float: right !important; }
}

/* Footer */
#footer {
    background-color: #1e274b;
    padding: 30px 0;
    font-size: 0.875rem;
    color: #fff;
}

#footer a { color: #d1d5db; text-decoration: none; }
#footer a:hover { color: #fff; }
#footer h5 { font-size: 16px; color: #fff; margin-bottom: 12px; }
#footer ul { list-style: none; padding: 0; margin: 0; }
#footer ul li { padding: 4px 0; }
#footer .footer-icon { margin-right: 8px; color: #ef4444; }

/* Responsive */
@media (max-width: 768px) {
    .form-card {
        padding: 25px 20px;
        margin: 0 -12px;
        border-radius: 0;
    }

    .sonuc-card,
    .tamamlandi-card {
        padding: 30px 20px;
    }

    .sayac {
        font-size: 36px;
    }

    .main-content {
        padding: 20px 0;
    }
}

@media (max-width: 576px) {
    .form-card-header h1 {
        font-size: 18px;
    }

    .veznedar-bilgi .table th {
        width: 90px;
        font-size: 13px;
    }
}

/* Select2 uyumu */
.select2-container { width: 100% !important; }
.select2-selection--single { height: 38px !important; border-color: #dee2e6 !important; border-radius: 6px !important; }
.select2-selection__rendered { line-height: 36px !important; }
.select2-selection__arrow { height: 36px !important; }
