:root {
    --primary-color: #F55D2A;
    --secondary-color: #004A99;
    --bg-color: #f8f9fa;
    --sidebar-bg: #212529;
    --white: #fff;
    --text-color: #333;
    --border-color: #dee2e6;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
}

/* Giriş Sayfası */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.login-container {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.login-logo {
    max-width: 180px;
    margin-bottom: 20px;
}

.login-container h2 {
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-weight: 700;
}

.input-group {
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

.login-container button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    border: none;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-container button:hover {
    background-color: #e07015;
}

.error {
    color: #d9534f;
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* Dashboard */
.dashboard-body {
    display: flex;
}

.sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    color: var(--white);
    height: 100vh;
    position: fixed;
    display: flex;
    flex-direction: column;
}

.sidebar h3 {
    padding: 20px;
    margin: 0;
    background-color: rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 1.4rem;
}

.sidebar ul {
    list-style: none;
    padding: 10px 0;
    margin: 0;
    flex-grow: 1;
}

.sidebar ul li a {
    display: block;
    padding: 15px 20px;
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar ul li.active a,
.sidebar ul li a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.logout-area {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #495057;
}

.logout-area a {
    color: #adb5bd;
    text-decoration: none;
}

.logout-area a:hover {
    color: var(--white);
}

.main-content {
    margin-left: 250px;
    width: calc(100% - 250px);
    padding: 20px;
    box-sizing: border-box;
}

.main-content header {
    padding: 20px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.main-content h2 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.8rem;
}

.content {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

th {
    background-color: #f8f9fa;
    font-weight: 500;
    color: #495057;
}

tr:hover {
    background-color: #f1f1f1;
}

.detail-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.detail-btn:hover {
    background-color: #003a7a;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 700px;
    border-radius: 8px;
    position: relative;
    animation: fadeIn 0.5s;
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    color: #aaa;
    align-self: flex-end;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#modalBody {
    max-height: 65vh;
    overflow-y: auto;
    padding-right: 15px;
}

.modal-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.modal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

#modalBody h4 {
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

#modalBody p {
    margin: 8px 0;
    line-height: 1.5;
}

#modalBody p strong {
    color: #333;
}

.modal-footer {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

.pdf-btn {
    background-color: #28a745;
    padding: 10px 18px;
    font-size: 0.9rem;
}

.pdf-btn:hover {
    background-color: #218838;
}

.pdf-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* Site Ayarları Sayfası */
.settings-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.success-message {
    padding: 15px;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    margin-bottom: 20px;
}

.btn.submit-btn {
    background-color: #28a745;
    border: none;
    color: white;
    padding: 12px 25px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
}

.btn.submit-btn:hover {
    background-color: #218838;
}

/* Mobil Uyum */
@media (max-width: 992px) {
    .dashboard-body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }
}