/* MODERN BEYAZ TEMA - TÜM SAYFALAR İÇİN */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e8f4f8 0%, #ffffff 100%);;
    min-height: 100vh;
    padding: 20px;
}

/* LOGO CONTAINER */
.logo-header {
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
}

.logo-header img {
    max-width: 200px;
    max-height: 80px;
    object-fit: contain;
}

.logo-header h2 {
    color: #0077be;
    margin: 0;
}

/* ADMIN CONTAINER */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
}

.admin-header {
    background: linear-gradient(135deg, #e8f4f8 0%, #d4ebf2 100%);
    padding: 25px 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border: 2px solid #0077be;
    box-shadow: 0 2px 10px rgba(0, 119, 190, 0.08);
}

.admin-header h1 {
    color: #0077be;
    font-size: 28px;
    margin: 0;
}

.admin-info {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.admin-info span {
    color: #0077be;
    font-weight: 600;
}

/* BUTONLAR */
.btn-back,
.btn-logout {
    padding: 10px 20px;
    background: white;
    color: #0077be;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid #0077be;
    font-size: 14px;
}

.btn-back:hover,
.btn-logout:hover {
    background: #0077be;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 190, 0.2);
}

.btn-logout {
    background: #0077be;
    color: white;
}

.btn-logout:hover {
    background: #005a8f;
}

/* KARTLAR */
.detail-card,
.dashboard-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 15px rgba(0, 119, 190, 0.08);
    border: 1px solid #e8f4f8;
}

.detail-card h2,
.detail-card h3 {
    color: #0077be;
    margin-bottom: 20px;
}

/* PATIENT HEADER */
.patient-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.patient-photo-large {
    flex-shrink: 0;
}

.patient-photo-large img {
    width: 200px;
    height: 200px;
    border-radius: 15px;
    object-fit: cover;
    border: 3px solid #e8f4f8;
    box-shadow: 0 4px 15px rgba(0, 119, 190, 0.1);
    cursor: pointer;
    transition: transform 0.3s;
}

.patient-photo-large img:hover {
    transform: scale(1.05);
}

.no-photo-large {
    width: 200px;
    height: 200px;
    border-radius: 15px;
    background: #e8f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0077be;
    font-weight: 600;
}

/* INFO GRID */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-item {
    padding: 15px;
    background: #f8fcff;
    border-radius: 10px;
    border-left: 4px solid #0077be;
}

.info-item label {
    display: block;
    color: #0077be;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
}

.info-item span {
    color: #333;
    font-size: 16px;
}

/* TABLE */
.patient-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 119, 190, 0.05);
}

.patient-table thead {
    background: linear-gradient(135deg, #e8f4f8 0%, #d4ebf2 100%);
}

.patient-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #0077be;
    border-bottom: 2px solid #0077be;
}

.patient-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.patient-table tbody tr:hover {
    background: #f8fcff;
}

/* PATIENT THUMB */
.patient-thumb {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
    border: 2px solid #e8f4f8;
}

.patient-thumb:hover {
    transform: scale(1.2);
    border-color: #0077be;
}

/* BUTONLAR */
.btn-view,
.btn-edit,
.btn-delete {
    padding: 8px 16px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-view {
    background: #0077be;
}

.btn-view:hover {
    background: #005a8f;
    transform: translateY(-2px);
}

.btn-edit {
    background: #00a8e8;
}

.btn-edit:hover {
    background: #0096c7;
}

.btn-delete {
    background: #e74c3c;
}

.btn-delete:hover {
    background: #c0392b;
}

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* QUICK ACCESS BUTTONS */
.quick-access-btn {
    padding: 15px 25px;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 119, 190, 0.15);
}

.quick-access-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 119, 190, 0.25);
}

/* COLLAPSIBLE SECTIONS */
.collapsible-section {
    margin-bottom: 30px;
    animation: slideDown 0.4s ease;
    overflow: hidden;
}

@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 3000px;
        opacity: 1;
    }
}

/* MODAL */
.photo-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.photo-modal-content {
    position: relative;
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    top: 50%;
    transform: translateY(-50%);
    animation: zoomIn 0.3s ease;
    border-radius: 10px;
}

@keyframes zoomIn {
    from {
        transform: translateY(-50%) scale(0.5);
        opacity: 0;
    }
    to {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
}

.photo-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.photo-modal-close:hover {
    color: #0096c7;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .admin-header {
        padding: 20px;
    }
    
    .admin-header h1 {
        font-size: 22px;
    }
    
    .patient-header {
        flex-direction: column;
    }
    
    .patient-table {
        font-size: 14px;
    }
    
    .patient-table th,
    .patient-table td {
        padding: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-view,
    .btn-edit,
    .btn-delete {
        width: 100%;
        text-align: center;
    }
    
    .quick-access-btn {
        width: 100%;
        font-size: 14px;
    }
}

/* FOOTER */
.page-footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    border-top: 2px solid #e8f4f8;
}

.page-footer img {
    max-width: 150px;
    max-height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

.page-footer p {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}
