/* === GOOGLE FONT & MODERN TEMEL AYARLAR === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: #f7f8fc;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* === ANA KAPSAYICI (CONTAINER) === */
.fst-container {
    width: 100%;
    max-width: 520px; /* Biraz daha geniş olabilir */
    margin: 40px auto;
    padding: 40px;
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05), 0 5px 10px rgba(0,0,0,0.02);
    border: 1px solid #e9ecef;
}

/* === LOGO ALANI === */
.logo-container {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
}
.logo-container .site-logo {
    max-width: 200px; /* Logonuzun boyutuna göre ayarlayın */
    height: auto;
}

/* === FORM ALANI === */
.fst-form-wrapper h1 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 700;
    color: #2c3e50;
}
.fst-form-wrapper p {
    text-align: center;
    margin-bottom: 30px;
    color: #6c757d;
}

/* === FORM GRUPLARI VE ETİKETLER === */
.form-group { margin-bottom: 22px; }
.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #495057;
    font-size: 0.9em;
}

/* === INPUT, SELECT, TEXTAREA ALANLARI === */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

/* === ANA BUTON (SUBMIT) === */
.submit-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #34495e, #2c3e50);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.2);
}
.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.3);
}

/* === HATA VE BİLGİ MESAJLARI === */
.form-message { text-align: center; padding: 15px 20px; border-radius: 8px; margin-bottom: 20px; border: 1px solid transparent; }
.form-message.success { background-color: #d4edda; color: #155724; border-color: #c3e6cb; }
.form-message.error { background-color: #f8d7da; color: #721c24; border-color: #f5c6cb; }

/* === LİNKLER === */
.fst-form-wrapper .form-links {
    text-align: center;
    margin-top: 25px;
}
.fst-form-wrapper a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s ease;
}
.fst-form-wrapper a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* === MOBİL UYUM AYARLARI === */
@media (max-width: 768px) {
    body {
        align-items: flex-start;
        padding: 20px 15px;
        box-sizing: border-box;
    }
    .fst-container {
        padding: 30px 20px;
        margin: 0;
        box-shadow: none;
        border: none;
    }
}

.talepler-tablosu {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-sizing: border-box; /* Dışarı taşmaları engellemek için */
}

.talepler-tablosu th, 
.talepler-tablosu td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 14px;
}

.talepler-tablosu th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.talepler-tablosu tr:nth-child(even) {
    background-color: #f9f9f9;
}

.durum-etiketi {
    padding: 5px 10px;
    border-radius: 5px;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    display: inline-block;
}

.durum-talep-alindi { background-color: #3498db; }
.durum-inceleniyor { background-color: #f1c40f; }
.durum-onay-bekliyor { background-color: #e67e22; }
.durum-tamamlandi { background-color: #2ecc71; }
.durum-iptal-edildi { background-color: #e74c3c; }

/* === MOBİL UYUMLULUK (TAŞMA SORUNU İÇİN DÜZELTME) === */
@media screen and (max-width: 768px) {
    /* Başlık satırını tamamen gizle */
    .talepler-tablosu thead {
        display: none;
    }

    /* Tabloyu, satırları ve hücreleri blok elementlere çevir */
    .talepler-tablosu, 
    .talepler-tablosu tbody, 
    .talepler-tablosu tr, 
    .talepler-tablosu td {
        display: block;
        width: 100%;
    }

    /* Her satır arasında boşluk bırak (kart görünümü için) */
    .talepler-tablosu tr {
        margin-bottom: 15px;
        border: 1px solid #ddd; /* Her kartın etrafına bir çerçeve ekleyelim */
    }

    /* Hücrelerin iç ayarlarını düzelt */
    .talepler-tablosu td {
        text-align: right;
        padding-left: 50%; /* Sahte başlık için solda yer aç */
        position: relative;
        border: none; /* Kartın kendi çerçevesi var, hücre çerçevelerini kaldır */
        border-bottom: 1px solid #f0f0f0; /* Hücreler arasına ince bir çizgi */
    }
    
    .talepler-tablosu td:last-child {
        border-bottom: none; /* Son hücrenin altındaki çizgiyi kaldır */
    }

    /* data-label'dan sahte başlıkları oluştur */
    .talepler-tablosu td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
    }
}