* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

/* LOGIN */
.login-body {
    background: linear-gradient(135deg, #1f4e79, #3c78d8);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    width: 380px;
    background: #fff;
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

    .login-box h1 {
        text-align: center;
        color: #1f4e79;
        margin-bottom: 8px;
    }

    .login-box p {
        text-align: center;
        color: #666;
        margin-bottom: 25px;
    }

.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        display: block;
        font-weight: bold;
        margin-bottom: 8px;
        color: #333;
    }

    .form-group input {
        width: 100%;
        padding: 12px;
        border: 1px solid #cfcfcf;
        border-radius: 8px;
        outline: none;
        font-size: 14px;
    }

        .form-group input:focus {
            border-color: #1f4e79;
            box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.15);
        }

.login-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #1f4e79;
    color: white;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

    .login-btn:hover {
        background: #163a5a;
    }

.error-box {
    background: #ffe7e7;
    color: #c62828;
    border: 1px solid #ef9a9a;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
}


/* DASHBOARD / HOME */
.dashboard-body {
    background: #f4f7fb;
    min-height: 100vh;
    padding: 30px;
    font-family: Arial, sans-serif;
}

.dashboard-container {
    max-width: 1300px;
    margin: 0 auto;
}

.dashboard-header {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 25px 30px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

    .dashboard-header h1 {
        color: #1f4e79;
        margin-bottom: 8px;
    }

    .dashboard-header p {
        color: #555;
        font-size: 17px;
    }

.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.module-group {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 25px 30px;
}

    .module-group h2 {
        color: #1f4e79;
        margin-bottom: 20px;
        font-size: 22px;
    }

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.module-card {
    background: linear-gradient(135deg, #1f4e79, #2f6ea3);
    color: #fff;
    text-decoration: none;
    border-radius: 14px;
    padding: 22px 20px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.2s ease;
    box-shadow: 0 8px 20px rgba(31, 78, 121, 0.18);
}

    .module-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(31, 78, 121, 0.24);
    }

    .module-card h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .module-card p {
        font-size: 14px;
        line-height: 1.5;
        color: rgba(255, 255, 255, 0.92);
    }

.passive-card {
    background: #eef3f8;
    color: #1f4e79;
    box-shadow: none;
    border: 1px dashed #c7d5e5;
}

    .passive-card p {
        color: #4f6479;
    }

.logout-btn {
    display: inline-block;
    text-decoration: none;
    background: #fff0f0;
    color: #c62828;
    border: 1px solid #f3c1c1;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: bold;
    transition: 0.2s;
}

    .logout-btn:hover {
        background: #ffe3e3;
    }

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-body {
        padding: 20px;
    }

    .module-group {
        padding: 20px;
    }
}


/*bt talep.html*/
.page-body {
    background: #f4f7fb;
    min-height: 100vh;
    padding: 30px;
    
}

.page-container {
    max-width: 1300px;
    margin: 0 auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .page-header h1 {
        color: #1f4e79;
    }

.page-header-buttons {
    display: flex;
    gap: 10px;
}

.add-btn,
.back-btn,
.save-btn {
    background: #1f4e79;
    color: #fff;
    border: none;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    display: inline-block;
}

    .add-btn:hover,
    .back-btn:hover,
    .save-btn:hover {
        background: #163a5a;
    }

.table-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

    .data-table thead {
        background: #1f4e79;
        color: white;
    }

    .data-table th,
    .data-table td {
        padding: 14px;
        border-bottom: 1px solid #e8e8e8;
        text-align: left;
        vertical-align: top;
    }

    .data-table tbody tr:hover {
        background: #f8fbff;
    }

.modal-header h2 {
    color: #1f4e79;
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

textarea,
select,
input[type="number"],
input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
}

    textarea:focus,
    select:focus,
    input[type="number"]:focus,
    input[type="text"]:focus {
        border-color: #1f4e79;
        box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.15);
    }

#talepDetayIcerik p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.data-table tbody tr {
    cursor: pointer;
}

.status-btn {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffe08a;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

    .status-btn:hover {
        background: #ffe8a1;
    }

.clickable-row {
    cursor: pointer;
}

    .clickable-row:hover {
        background-color: #f5f7fb;
    }



.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.form-group textarea,
.form-group input,
.form-group select {
    width: 100%;
    box-sizing: border-box;
}
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
    padding: 20px;
}

.modal-box {
    width: 500px;
    max-width: 95%;
    background: white;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.20);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 40px);
    overflow: hidden;
}

.large-modal {
    width: 1100px;
    max-width: 98%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    margin-bottom: 0;
    border-bottom: 1px solid #e5e5e5;
    flex-shrink: 0;
    background: #fff;
}

.modal-body-scroll {
    padding: 20px 25px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 25px 20px;
    border-top: 1px solid #e5e5e5;
    background: #fff;
    flex-shrink: 0;
}
.onay-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    margin-right: 5px;
    transition: 0.2s;
}

    .onay-btn:hover {
        background-color: #218838;
    }

.red-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s;
}

    .red-btn:hover {
        background-color: #c82333;
    }
.table-action-btn {
    border: 1px solid transparent;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: 0.2s;
    margin-right: 5px;
}

.onay-btn {
    background: #e6f4ea;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

    .onay-btn:hover {
        background: #d4edda;
    }

.red-btn {
    background: #fdecea;
    color: #c62828;
    border: 1px solid #f5c6cb;
}

    .red-btn:hover {
        background: #f8d7da;
    }
input[list] {
    width: 100%;
    padding: 12px;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
}

    input[list]:focus {
        border-color: #1f4e79;
        box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.15);
    }
input[list] {
    width: 100%;
    padding: 12px;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
}

    input[list]:focus {
        border-color: #1f4e79;
        box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.15);
    }
/* =========================
   MOBİL UYUMLULUK
   ========================= */

/* Genel ekran taşmalarını önle */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

img, table, input, select, textarea, button {
    max-width: 100%;
}

/* Sayfa kapsayıcıları */
.page-container,
.dashboard-container,
.login-container {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
}

/* Tablet */
@media (max-width: 992px) {
    .dashboard-body,
    .page-body {
        padding: 16px;
    }

    .dashboard-header,
    .module-group,
    .table-card,
    .login-box {
        border-radius: 12px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .page-header-buttons {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

        .page-header-buttons a,
        .page-header-buttons button {
            width: 100%;
        }

    .detail-grid,
    .form-grid,
    .form-grid-3,
    .summary-grid,
    .filter-grid {
        grid-template-columns: 1fr !important;
    }

    .module-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Telefon */
@media (max-width: 768px) {
    .login-body {
        padding: 16px;
        height: auto;
        min-height: 100vh;
    }

    .login-container {
        padding: 0;
    }

    .login-box {
        width: 100%;
        max-width: 100%;
        padding: 24px 18px;
        border-radius: 12px;
    }

        .login-box h1 {
            font-size: 28px;
        }

        .login-box p {
            font-size: 14px;
            margin-bottom: 20px;
        }

    .form-group label {
        font-size: 14px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* mobil zoom sorununu azaltır */
        padding: 12px;
    }

    .login-btn,
    .save-btn,
    .back-btn,
    .add-btn,
    .logout-btn,
    .action-btn,
    .secondary-btn,
    .cancel-btn {
        width: 100%;
        text-align: center;
        padding: 12px 14px;
        font-size: 15px;
    }

    .dashboard-body,
    .page-body {
        padding: 12px;
    }

    .dashboard-header {
        padding: 18px;
    }

        .dashboard-header h1 {
            font-size: 24px;
        }

        .dashboard-header p {
            font-size: 14px;
        }

    .module-group {
        padding: 18px;
    }

        .module-group h2 {
            font-size: 20px;
        }

    .module-grid {
        grid-template-columns: 1fr;
    }

    .module-card {
        min-height: auto;
        padding: 18px;
    }

        .module-card h3 {
            font-size: 18px;
        }

        .module-card p {
            font-size: 13px;
        }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

        .page-header h1 {
            font-size: 22px;
        }

    .page-header-buttons {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

        .page-header-buttons .add-btn,
        .page-header-buttons .back-btn,
        .page-header-buttons .save-btn,
        .page-header-buttons button,
        .page-header-buttons a {
            width: 100%;
        }

    /* Tablo alanlarında yatay scroll */
    .table-card {
        overflow-x: auto;
        padding: 14px;
    }

    .data-table,
    .simple-table {
        min-width: 700px;
    }

    /* Modal düzeni */
    .modal-overlay {
        padding: 10px !important;
        align-items: flex-start !important;
    }

    .modal-box,
    .large-modal {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 12px;
        margin-top: 10px;
    }

    .modal-header,
    .modal-footer,
    .modal-body,
    .modal-body-scroll {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .modal-footer {
        flex-direction: column;
    }

        .modal-footer button,
        .modal-footer a {
            width: 100%;
        }

    .tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
        text-align: center;
    }
}

/* Küçük telefonlar */
@media (max-width: 480px) {
    .login-box {
        padding: 20px 14px;
    }

        .login-box h1 {
            font-size: 24px;
        }

    .dashboard-header,
    .module-group,
    .table-card {
        padding: 14px;
    }

        .page-header h1,
        .module-group h2 {
            font-size: 18px;
        }

    .form-group input,
    .form-group select,
    .form-group textarea,
    .login-btn,
    .save-btn,
    .back-btn,
    .add-btn {
        font-size: 14px;
    }
}
