/* Shared CSS for Home and Admin Pages */

/* Global reset to prevent layout overflow */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; overflow-x: hidden; }

body {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Utility: center content vertically and horizontally */
.center-body { display: flex; align-items: center; justify-content: center; }

/* Narrow container variant for detail/create pages */
.main-container--narrow {
    max-width: 1270px;
    width: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Enhanced narrow container for create page */
.main-container--create {
    max-width: 1270px;
    width: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Yeni Kişi Oluştur Sayfası Özel Stilleri */
.create-person-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 15px;
    width: 100%;
    max-width: 500px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0 auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.create-person-title {
    text-align: center;
    color: #2d3748;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.create-person-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.create-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.create-form-label {
    font-weight: 600;
    color: #4a5568;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.create-form-input {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.3s ease;
    background: #f7fafc;
    color: #2d3748;
}

.create-form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.create-form-select {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.3s ease;
    background: #f7fafc;
    color: #2d3748;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

.create-form-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background-color: white;
}

.create-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.create-form-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    padding-top: 12px;
    border-top: 2px solid #e2e8f0;
}

.create-btn {
    padding: 10px 20px;
    border-radius: 18px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.create-btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.create-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    color: white;
    text-decoration: none;
}

.create-btn-secondary {
    background: linear-gradient(45deg, #a0aec0, #718096);
    color: white;
    box-shadow: 0 4px 15px rgba(160, 174, 192, 0.4);
}

.create-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(160, 174, 192, 0.6);
    color: white;
    text-decoration: none;
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .create-person-container {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .create-person-title {
        font-size: 24px;
    }
    
    .create-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .create-form-buttons {
        flex-direction: column;
    }
    
    .create-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .create-person-container {
        padding: 20px 15px;
    }
    
    .create-person-title {
        font-size: 20px;
    }
    
    .create-form-input,
    .create-form-select {
        font-size: 16px;
        padding: 14px 16px;
    }
}

.main-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin: 20px;
    padding: 25px;
    backdrop-filter: blur(10px);
}

.page-title {
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-modern {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-success-modern {
    background: linear-gradient(45deg, #00b894, #00cec9);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.4);
}

.btn-success-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.6);
    color: white;
    text-decoration: none;
}

.btn-danger-modern {
    background: linear-gradient(45deg, #e17055, #d63031);
    color: white;
    box-shadow: 0 4px 12px rgba(225, 112, 85, 0.4);
}

.btn-danger-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 112, 85, 0.6);
    color: white;
    text-decoration: none;
}

.btn-info-modern {
    background: linear-gradient(45deg, #0984e3, #74b9ff);
    color: white;
    box-shadow: 0 4px 12px rgba(9, 132, 227, 0.4);
}

.btn-info-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(9, 132, 227, 0.6);
    color: white;
    text-decoration: none;
}

/* Buttons used on details/create pages */
.btn-primary-modern {
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    color: white;
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.4);
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.6);
    color: white;
    text-decoration: none;
}

.btn-secondary-modern {
    background: linear-gradient(45deg, #6c757d, #495057);
    color: white;
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
}

.btn-secondary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.6);
    color: white;
    text-decoration: none;
}

.btn-warning-modern {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
}

.btn-warning-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.6);
    color: white;
    text-decoration: none;
}

/* Details pages */
.detail-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.person-name {
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    overflow: hidden;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s ease;
    flex-wrap: wrap;
}

.detail-row:hover {
    background: #f8f9fa;
    border-radius: 8px;
    padding-left: 10px;
    padding-right: 10px;
}

.detail-label {
    font-weight: 600;
    color: #1e3c72;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 120px;
}

.detail-value {
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    text-align: right;
    flex: 1;
    margin-left: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    overflow: hidden;
}

.btn-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #f1f3f4;
    gap: 12px;
}

.detail-input {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #495057;
    display: none;
}

.detail-input:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
    background: white;
}

.edit-mode .detail-value { display: none; }
.edit-mode .detail-input { display: block; }
.edit-buttons { display: none; }
.edit-mode .edit-buttons { display: flex; }
.view-buttons { display: flex; }
.edit-mode .view-buttons { display: none; }

/* Create page */
.form-container {
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    z-index: 10;
}

/* Enhanced form container for better layout */
.form-container--enhanced {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    overflow: visible;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(10px);
}

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

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #1e3c72;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #495057;
}

.form-control:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
    background: white;
}

.form-control::placeholder { color: #adb5bd; font-style: italic; }

select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
    min-height: 42px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Enhanced form row with better spacing */
.form-row--enhanced { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 15px; 
    margin-bottom: 18px;
}

/* Admin login page */
.login-page.center-body {
    flex-direction: column;
    padding: 24px 16px;
}

.login-page-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 420px;
}

.login-brand {
    text-align: center;
    margin-bottom: 22px;
}

.login-brand-logo {
    display: block;
    width: min(100%, 140px);
    height: auto;
    margin: 0 auto;
    mix-blend-mode: screen;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    backdrop-filter: blur(10px);
    width: 100%;
    margin: 0;
}

.login-page .form-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.login-page .form-group {
    margin-bottom: 16px;
}

.login-page .btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-header { text-align: center; margin-bottom: 30px; }
.login-title {
    color: #1e3c72;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 2px solid #1e3c72;
    padding-bottom: 10px;
}
.login-subtitle { color: #6c757d; font-size: 14px; font-weight: 500; }
.form-label { display: block; font-weight: 600; color: #1e3c72; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #495057;
}
.form-input:focus { outline: none; border-color: #1e3c72; box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1); background: white; }
.btn-login {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    color: white;
    cursor: pointer;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(30, 60, 114, 0.25);
}
.btn-login:hover {
    background: linear-gradient(45deg, #2a5298, #667eea);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(30, 60, 114, 0.3);
}
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; font-size: 14px; font-weight: 500; }
.alert-danger { background: #dc3545; color: white; border: 1px solid #dc3545; }
.login-footer { text-align: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid #e9ecef; }
.login-footer a { color: #1e3c72; text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.3s ease; }
.login-footer a:hover { color: #2a5298; }
.login-support-text {
    margin: 16px 0 0;
    text-align: center;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}
.input-icon { position: relative; }
.input-icon input { padding-left: 45px; }
.input-icon::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
}
.username-icon::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236c757d' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E"); }
.password-icon::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236c757d' viewBox='0 0 24 24'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z'/%3E%3C/svg%3E"); }

/* Utility classes */
.m-0 { margin: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-10 { margin-bottom: 10px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mt--10 { margin-top: -10px !important; }
.ml-20 { margin-left: 20px !important; }
.va-middle { vertical-align: middle; }
.maxw-400 { max-width: 400px; }
.hidden { display: none !important; }

/* Validation and alert helpers */
.alert-block-danger { background: #f8d7da; color: #721c24; padding: 15px; border-radius: 8px; margin-bottom: 20px; border: 1px solid #f5c6cb; }
.validation-message { color: #dc3545; font-size: 12px; }

/* Checkbox helpers */
.checkbox-large { width: 18px; height: 18px; margin-right: 8px; vertical-align: middle; }
.checkbox-compact { width: 18px; height: 18px; margin: 0; }

/* Inline editors */
.detail-inline-editor { display: none; align-items: center; gap: 10px; text-align: right; flex: 1; margin-left: 20px; }
.muted-14 { color: #495057; font-size: 14px; }

/* Input styled like person-name */
.person-name-input {
    display: none;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

/* Responsive */
@media (max-width: 768px) {
    .main-container { margin: 10px; padding: 20px; max-width: 100%; }
    .page-title { font-size: 24px; }
    .detail-card { padding: 20px; }
    .detail-row { flex-direction: column; align-items: flex-start; gap: 8px; }
    .detail-label { min-width: auto; margin-bottom: 5px; }
    .detail-value { text-align: left; margin-left: 0; width: 100%; }
    .btn-container { flex-direction: column; gap: 10px; }
    .btn-modern { width: 100%; justify-content: center; }

    .form-row { grid-template-columns: 1fr; gap: 15px; }
    .form-row--enhanced { grid-template-columns: 1fr; gap: 15px; }
    .login-page-shell { max-width: 100%; }
    .login-brand { margin-bottom: 18px; }
    .login-brand-logo { width: min(100%, 118px); }
    .login-container { margin: 0; padding: 30px; max-width: 100%; }
    .login-title { font-size: 24px; }
    
    .form-container--enhanced {
        padding: 20px;
        margin: 10px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .main-container { margin: 5px; padding: 15px; }
    .page-title { font-size: 20px; }
    .detail-card { padding: 15px; }
    .person-name { font-size: 18px; padding: 10px 12px; }
    .detail-label { font-size: 12px; }
    .detail-value { font-size: 13px; }
    .form-control { padding: 10px 12px; font-size: 16px; }
    select.form-control { min-height: 45px; padding-top: 12px; padding-bottom: 12px; }
    .login-container { padding: 25px; }
    .btn-login { padding: 12px 18px; font-size: 16px; }
    
    .form-container--enhanced {
        padding: 15px;
        margin: 5px;
    }
}

.vardiya-headers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 15px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.vardiya-header {
    background: #e0e0e0;
    color: #222;
    font-weight: bold;
    font-size: 14px;
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    border-bottom: 2px solid #bdbdbd;
}

.vardiya-saat {
    font-size: 11px;
    color: #444;
    background: #f5f5f5;
    padding: 6px;
    text-align: center;
    font-weight: 500;
    border-radius: 0 0 6px 6px;
    margin-top: -2px;
}

.team-section {
    margin-bottom: 15px;
    min-height: 120px;
    transition: all 0.3s ease;
}

.team-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* Stacked layout for mobile - vardiya cards with teams underneath */
.team-content--stacked {
    grid-template-columns: 1fr;
}

/* Desktop: Vardiya columns layout */
@media (min-width: 769px) {
    .vardiya-columns {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .vardiya-column {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .vardiya-column .team-column {
        min-height: auto;
        height: auto;
    }
    
    /* Hide mobile shift cards on desktop */
    .team-section.shift-card {
        display: none;
    }
}

.team-column {
    background: white;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    min-height: 120px;
    height: auto;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: all 0.3s ease;
}

.team-header-small {
    background: linear-gradient(45deg, #e53935, #c62828);
    color: white;
    font-weight: bold;
    font-size: 12px;
    padding: 6px 8px;
    text-align: center;
    border-radius: 4px;
    margin-bottom: 8px;
    box-shadow: 0 2px 6px rgba(229, 57, 53, 0.3);
}

/* Shift card wrapper */
.shift-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.team-header-small.teknik {
    background: linear-gradient(45deg, #1e40af, #1e3a8a);
    box-shadow: 0 2px 6px rgba(30, 64, 175, 0.3);
}

.team-header-small.arama {
    background: linear-gradient(45deg, #059669, #047857);
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
}

.team-header-small.ilkyardim {
    background: linear-gradient(45deg, #f59e0b, #d97706);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.team-header-small.koruma {
    background: linear-gradient(45deg, #7c3aed, #6d28d9);
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.3);
}

.team-header-small.tahliye {
    background: linear-gradient(45deg, #ea580c, #c2410c);
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.3);
}

.team-header-small.kimyasal {
    background: linear-gradient(45deg, #0891b2, #0e7490);
    box-shadow: 0 2px 6px rgba(8, 145, 178, 0.3);
}

/* Mobile için team-header renkleri */
.team-header.teknik {
    background: linear-gradient(45deg, #1e40af, #1e3a8a);
    box-shadow: 0 2px 6px rgba(30, 64, 175, 0.3);
}

.team-header.arama {
    background: linear-gradient(45deg, #059669, #047857);
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
}

.team-header.ilkyardim {
    background: linear-gradient(45deg, #f59e0b, #d97706);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.team-header.koruma {
    background: linear-gradient(45deg, #7c3aed, #6d28d9);
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.3);
}

.team-header.tahliye {
    background: linear-gradient(45deg, #ea580c, #c2410c);
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.3);
}

.team-header.kimyasal {
    background: linear-gradient(45deg, #0891b2, #0e7490);
    box-shadow: 0 2px 6px rgba(8, 145, 178, 0.3);
}

.team-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    overflow-y: visible;
    max-height: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team-list li {
    background: #f8f9fa;
    margin-bottom: 0;
    padding: 7px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #495057;
    border-left: 3px solid #1e3c72;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.4;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    min-height: 24px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.team-list li:hover {
    background: #e9ecef;
    transform: translateX(2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.team-list li a {
    color: inherit;
    text-decoration: none;
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
}

.empty-message {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .vardiya-headers {
        grid-template-columns: repeat(2, 1fr);
    }
    .team-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: Show vardiya headers at top */
@media (min-width: 769px) {
    .vardiya-headers {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        margin-bottom: 15px;
    }
    
    .vardiya-headers .vardiya-header {
        background: linear-gradient(45deg, #1e3c72, #2a5298);
        color: white;
        font-weight: bold;
        font-size: 14px;
        padding: 10px;
        text-align: center;
        border-radius: 6px;
        box-shadow: 0 2px 6px rgba(30, 60, 114, 0.3);
    }
    
    .vardiya-headers .vardiya-saat {
        background: #f8f9fa;
        color: #495057;
        font-size: 12px;
        padding: 6px;
        text-align: center;
        border-radius: 4px;
        margin-top: 4px;
    }
}

@media (max-width: 768px) {
    .main-container {
        margin: 10px;
        padding: 15px;
        max-width: 100%;
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-modern {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* Mobile'da vardiya kartları göster */
    .vardiya-headers {
        display: none;
    }
    
    .vardiya-columns {
        display: none;
    }
    
    .team-section.shift-card {
        display: block;
        margin-bottom: 20px;
    }
    
    .team-content--stacked {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .team-section {
        background: white;
        border-radius: 8px;
        padding: 12px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }
    
    .team-header {
        font-size: 13px;
        padding: 8px 10px;
        margin-bottom: 8px;
        border-radius: 6px;
        color: white;
        font-weight: bold;
        text-align: center;
        background: linear-gradient(45deg, #e53935, #c62828);
        box-shadow: 0 2px 6px rgba(229, 57, 53, 0.3);
    }
    

    

    
    .team-list li {
        font-size: 10px;
        padding: 4px 6px;
        line-height: 1.3;
        margin-bottom: 2px;
    }
    
    .vardiya-header {
        font-size: 11px;
        padding: 6px;
    }
    
    .vardiya-saat {
        font-size: 9px;
        padding: 3px;
    }
    

}

@media (max-width: 480px) {
    .main-container {
        margin: 5px;
        padding: 10px;
    }
    
    .page-title {
        font-size: 18px;
        padding-bottom: 8px;
    }
    
    .action-buttons {
        padding: 10px;
    }
    
    .btn-modern {
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .vardiya-headers {
        position: sticky;
        top: 0;
        z-index: 100;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 6px 0;
        border-radius: 4px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }
    
    .team-column {
        padding: 10px;
    }
    
    .team-header-small {
        font-size: 11px;
        padding: 6px 8px;
        margin-bottom: 8px;
    }
    

    

    
    .team-list li {
        font-size: 10px;
        padding: 4px 6px;
        line-height: 1.3;
        margin-bottom: 3px;
    }
    
    .vardiya-header {
        font-size: 11px;
        padding: 6px;
    }
    
    .vardiya-saat {
        font-size: 9px;
        padding: 3px;
    }
}

/* Additional styles from HTML files */

/* Admin Details page specific styles */
.page-title-large {
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
}

/* Form group with custom margin */
.form-group-custom {
    margin-bottom: 15px;
}

/* Custom label styles */
.label-custom {
    font-weight: 600;
    color: #1e3c72;
    font-size: 13px;
}

/* PDF Generation Styles */
.pdf-container {
    font-family: Arial, sans-serif;
    padding: 10px;
    background: white;
    color: black;
    width: 100%;
    max-width: 100%;
}

.pdf-title {
    text-align: center;
    color: #1e3c72;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    border-bottom: 2px solid #1e3c72;
    padding-bottom: 8px;
}

.pdf-header-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    margin-bottom: 8px;
}

.pdf-header-cell {
    background: #1e3c72;
    color: white;
    padding: 8px 4px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    border: 1px solid #ddd;
}

.pdf-header-time {
    font-size: 11px;
    color: #e0e0e0;
    display: block;
    margin-top: 2px;
}

.pdf-team-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    margin-bottom: 8px;
    page-break-inside: avoid;
    break-inside: avoid;
}

.pdf-team-cell {
    border: 1px solid #ddd;
    page-break-inside: avoid;
    break-inside: avoid;
    min-height: 60px;
    height: auto;
    overflow: hidden;
}

.pdf-team-header {
    padding: 6px 4px;
    font-weight: bold;
    font-size: 11px;
    text-align: center;
    color: white;
    line-height: 1.2;
}

.pdf-team-content {
    padding: 6px;
    min-height: 40px;
    background: #f9f9f9;
}

.pdf-member-item {
    font-size: 11px;
    margin-bottom: 3px;
    padding: 3px 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    line-height: 1.4;
    hyphens: auto;
    background: #e8f4fd;
    border-radius: 3px;
    border-left: 2px solid #1e3c72;
    min-height: 18px;
}

.pdf-empty-message {
    font-size: 11px;
    color: #999;
    text-align: center;
    padding: 8px 4px;
    font-style: italic;
}

/* Team type specific colors for PDF */
.pdf-team-header.yanginla {
    background: #d32f2f;
}

.pdf-team-header.teknik {
    background: #1e40af;
}

.pdf-team-header.arama {
    background: #059669;
}

.pdf-team-header.ilkyardim {
    background: #f59e0b;
}

.pdf-team-header.koruma {
    background: #7c3aed;
}

.pdf-team-header.tahliye {
    background: #ea580c;
}

.pdf-team-header.kimyasal {
    background: #0891b2;
}

.pdf-team-header.default {
    background: #1976d2;
}

/* PDF Alt Bölüm Styling */
.pdf-bottom-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    page-break-before: always;
    break-before: page;
    page-break-inside: avoid;
    break-inside: avoid;
}

.pdf-important-note {
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-radius: 8px;
    border-left: 4px solid #f39c12;
}

.pdf-important-note h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #d68910;
    font-weight: bold;
}

.pdf-important-note p {
    margin: 0;
    font-size: 14px;
    color: #856404;
    line-height: 1.4;
}

.pdf-crisis-manager {
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    border-radius: 8px;
    border-left: 4px solid #17a2b8;
}

.pdf-crisis-manager h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #0c5460;
    font-weight: bold;
}

.pdf-crisis-manager p {
    margin: 0;
    font-size: 14px;
    color: #0c5460;
    font-weight: 500;
}

.pdf-team-leaders-phone {
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

.pdf-team-leaders-phone h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #2d3748;
    font-weight: bold;
    text-align: center;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

.pdf-phone-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.pdf-phone-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.pdf-team-name {
    font-weight: 600;
    font-size: 12px;
    color: #2d3748;
    flex: 1;
}

.pdf-phone-numbers {
    font-size: 11px;
    color: #4a5568;
    text-align: right;
    flex: 1;
}

.pdf-internal {
    display: block;
    color: #2d3748;
    font-weight: 500;
}

.pdf-mobile {
    display: block;
    color: #4a5568;
    font-size: 10px;
}

/* Alt Bilgi Alanı */
.bottom-info-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.important-note {
    border: 2px solid #4caf50;
    border-radius: 8px;
    padding: 15px;
    background: #f8fff8;
}

.important-note h3 {
    color: #2e7d32;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.important-note p {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.crisis-manager {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
}

.crisis-manager h3 {
    color: #856404;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.crisis-manager p {
    color: #333;
    font-size: 13px;
    margin: 0;
    font-weight: 500;
}

.right-column {
    display: flex;
    flex-direction: column;
}

.team-leaders-phone {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.team-leaders-phone h3 {
    background: #d32f2f;
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 15px;
    margin: 0;
    text-align: center;
    text-transform: uppercase;
}

.phone-list {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phone-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    background: #f8f9fa;
    border-left: 4px solid #dee2e6;
}

.phone-item .role {
    font-weight: bold;
    font-size: 13px;
    color: #333;
}

.phone-item .number {
    font-weight: 600;
    font-size: 13px;
}

/* Telefon numarası renkleri */
.crisis-manager-phone .number {
    color: #d32f2f;
}

.fire-fighting-phone .number {
    color: #d32f2f;
}

.technical-phone .number {
    color: #1976d2;
}

.protection-phone .number {
    color: #1976d2;
}

.search-phone .number {
    color: #f57c00;
}

.chemical-phone .number {
    color: #388e3c;
}

.firstaid-phone .number {
    color: #f57c00;
}

.evacuation-phone .number {
    color: #333;
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .info-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .bottom-info-section {
        margin-top: 20px;
        padding: 15px;
    }
    
    .important-note h3,
    .crisis-manager h3,
    .team-leaders-phone h3 {
        font-size: 14px;
    }
    
    .phone-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Sayfa Başlığı ve Firma Seçimi */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.page-title {
    margin: 0;
    flex: 1;
    min-width: 0;
}

.company-buttons-small {
    display: flex;
    gap: 10px;
    align-items: center;
}

.company-btn-small {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    color: white;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    min-width: 80px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.company-btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    color: white;
    text-decoration: none;
}

.company-btn-small.active {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
    transform: translateY(-3px);
}

.company-btn-small.active:hover {
    background: linear-gradient(45deg, #ff5252, #ffb74d);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
}

/* Responsive tasarım için */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .page-title {
        text-align: center;
        font-size: 24px;
    }
    
    .company-buttons-small {
        justify-content: center;
    }
    
    .company-btn-small {
        min-width: 70px;
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* Person Details Page Styling */
.person-details-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 15px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-height: calc(100vh - 100px);
}

.person-details-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.person-details-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.person-details-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 25px;
    margin-bottom: 20px;
}

/* Photo Section */
.person-photo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.person-photo-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.person-photo {
    width: 160px;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    border: 4px solid #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.person-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.person-photo-placeholder {
    width: 160px;
    height: 220px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 4px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #6c757d;
    transition: all 0.3s ease;
}

.person-photo-placeholder:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    border-color: #667eea;
}

.person-photo-edit {
    width: 100%;
}

.photo-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 13px;
    transition: border-color 0.3s ease;
}

.photo-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.photo-remove-btn {
    width: 100%;
    margin-top: 10px;
    min-width: unset;
}

.photo-hint {
    display: block;
    color: #6c757d;
    font-size: 11px;
    margin-top: 6px;
    text-align: center;
}

/* Info Section */
.person-info-section {
    flex: 1;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-item-full {
    grid-column: 1 / -1;
}

.info-label {
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    margin-bottom: 3px;
}

.info-display {
    background: #f8f9fa;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    color: #2d3748;
    font-weight: 500;
    min-height: 18px;
    transition: all 0.3s ease;
}

.info-display:hover {
    background: #f1f5f9;
    border-color: #cbd5e0;
}

.info-input {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    color: #2d3748;
    font-size: 13px;
    transition: all 0.3s ease;
}

.info-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.info-select {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    color: #2d3748;
    font-size: 13px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.info-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.info-checkbox {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.info-checkbox:hover {
    border-color: #667eea;
}

.info-checkbox.border-danger {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.info-checkbox-commitment label {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #2d3748;
}

.info-checkbox span {
    color: #2d3748;
    font-weight: 500;
}

/* Action Buttons */
.person-details-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 2px solid #f1f5f9;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    justify-content: center;
}

.action-btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.action-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.action-btn-secondary {
    background: linear-gradient(45deg, #6c757d, #495057);
    color: white;
}

.action-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

.action-btn-danger {
    background: linear-gradient(45deg, #e17055, #d63031);
    color: white;
}

.action-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(225, 112, 85, 0.4);
}

/* Responsive Design for Person Details */
@media (max-width: 1024px) {
    .person-details-content {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }
    
    .person-photo {
        width: 180px;
        height: 250px;
    }
    
    .person-photo-placeholder {
        width: 180px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .person-details-container {
        padding: 15px;
        margin: 10px;
    }
    
    .person-details-title {
        font-size: 2rem;
    }
    
    .person-details-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .person-photo-section {
        order: -1;
    }
    
    .person-photo {
        width: 150px;
        height: 200px;
    }
    
    .person-photo-placeholder {
        width: 150px;
        height: 200px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .person-details-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .person-details-container {
        padding: 10px;
        margin: 5px;
    }
    
    .person-details-title {
        font-size: 1.5rem;
    }
    
    .person-photo {
        width: 120px;
        height: 160px;
    }
    
    .person-photo-placeholder {
        width: 120px;
        height: 160px;
        font-size: 36px;
    }
}

/* ISG Talep Formu Stilleri */
.form-hero { 
    background: linear-gradient(135deg, #3b82f6 0%, #0ea5e9 50%, #06b6d4 100%); 
}

.form-card { 
    backdrop-filter: blur(2px); 
}

.input-group-text { 
    background: #f8fafc; 
}

.input-group .form-control { 
    padding-top: .6rem; 
    padding-bottom: .6rem; 
}

.isg-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.isg-form-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
}

#submitBtn.isg-form-action-btn {
    margin-left: auto;
    margin-right: auto;
}

.isg-commitment-info .card-body {
    font-size: 0.9rem;
    line-height: 1.55;
}

.isg-commitment-info h5 {
    font-size: 1.05rem;
}

@media (max-width: 576px) { 
    .form-hero h2 { 
        font-size: 1.35rem; 
    }

    .isg-form-actions {
        gap: 8px;
    }

    .isg-form-action-btn {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 0.82rem;
        font-weight: 600;
        border-radius: 10px;
        flex: 1 1 0;
    }

    .isg-form-action-btn i {
        margin-right: 4px !important;
    }

    #submitBtn.isg-form-action-btn {
        margin-left: 0;
        margin-right: 0;
    }
}

.ramak-kala-section-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
    border-bottom: none;
    padding: 14px 20px;
}

.ramak-kala-section-header h5 {
    font-weight: 700;
    letter-spacing: 0.4px;
}

.ramak-kala-photo-table-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
}

.ramak-kala-photo-table {
    margin-bottom: 0;
    background: #ffffff;
}

.ramak-kala-photo-table thead th {
    background: #f1f5f9;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Home Landing */
.app-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 16px 48px;
}

.app-footer {
    margin-top: 10px;
    padding: 6px 10px;
    text-align: center;
    font-size: 11px;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.92);
}

.app-panel {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
}

.home-landing {
    max-width: 1040px;
    margin: 0 auto;
    padding: 8px 0 24px;
}

.home-landing-shell {
    padding: 28px 24px 32px;
}

.home-landing-topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 24px;
    gap: 10px;
}

.home-landing-topbar-split {
    justify-content: space-between;
}

.home-landing-grid--single {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
}

.home-landing-admin-btn {
    padding: 10px 18px;
    font-size: 13px;
}

.home-landing-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 20px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 16px;
}

.home-landing-logo {
    width: min(100%, 165px);
    height: auto;
    display: block;
    mix-blend-mode: screen;
}

.home-landing-header {
    text-align: center;
    margin-bottom: 32px;
    padding: 24px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 55%, #f0fdf4 100%);
    border-radius: 18px;
    border: 1px solid #dbeafe;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.home-landing-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #1e3c72, #2a5298, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-landing-subtitle {
    color: #475569;
    font-size: 1.05rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.2px;
}

.home-landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.home-landing-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px 22px;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    min-height: 220px;
    position: relative;
    overflow: hidden;
}

.home-landing-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.04), transparent 55%);
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}

.home-landing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    border-color: #cbd5e1;
    text-decoration: none;
    color: inherit;
}

.home-landing-card:hover::after {
    opacity: 1;
}

.home-landing-card h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}

.home-landing-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.55;
    flex: 1;
    font-size: 0.95rem;
}

.home-landing-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    font-size: 1.6rem;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25);
}

.home-landing-link {
    font-weight: 600;
    color: #4f46e5;
    font-size: 0.92rem;
    transition: transform 0.2s ease;
}

.home-landing-card:hover .home-landing-link {
    transform: translateX(4px);
}

.home-landing-card-org {
    border-top: 4px solid #e17055;
}

.home-landing-card-org .home-landing-icon {
    background: linear-gradient(135deg, #fff5f2, #ffe8e0);
}

.home-landing-card-form {
    border-top: 4px solid #667eea;
}

.home-landing-card-form .home-landing-icon {
    background: linear-gradient(135deg, #f5f7ff, #e8edff);
}

.home-landing-card-nearmiss {
    border-top: 4px solid #f59e0b;
}

.home-landing-card-nearmiss .home-landing-icon {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.home-landing-card-report {
    border-top: 4px solid #00b894;
}

.home-landing-card-report .home-landing-icon {
    background: linear-gradient(135deg, #f0fdf8, #dcfce7);
}

.home-landing-grid--admin {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-landing-card-report-admin {
    border-top: 4px solid #fdcb6e;
}

.home-landing-card-report-admin .home-landing-icon {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

@media (max-width: 992px) {
    .home-landing-grid--admin {
        grid-template-columns: 1fr;
    }
}

.report-page {
    max-width: 1200px;
    margin: 0 auto;
}

.report-page-panel {
    padding: 24px;
}

.report-page-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.report-page-toolbar-text {
    flex: 1;
    min-width: 220px;
}

.report-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.report-page-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.report-page-title {
    margin: 0 0 6px;
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.report-page-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

.report-embed-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px #e2e8f0;
}

.report-embed-wrap--tall {
    padding-bottom: 62%;
}

.report-embed-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.report-embed-note {
    margin-top: 12px;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.report-embed-note--footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed #e2e8f0;
    text-align: center;
}

.reports-stack {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.report-section {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    border: 1px solid #e2e8f0;
    border-left: 4px solid #00b894;
}

.report-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.report-section-title {
    margin: 0 0 4px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
}

.report-section-desc {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.5;
}

.app-empty-state {
    text-align: center;
    padding: 48px 24px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
}

.app-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.app-empty-state h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    color: #334155;
}

.app-empty-state p {
    margin: 0;
    color: #64748b;
}

.admin-panel-container {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    padding: 24px 28px 28px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.admin-panel-title {
    margin: 0 0 20px;
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e293b;
    padding-bottom: 14px;
    border-bottom: 3px solid #667eea;
}

.create-person-container--form {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    max-width: 640px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .home-landing-grid {
        grid-template-columns: 1fr;
    }

    .home-landing-title {
        font-size: 1.65rem;
    }

    .home-landing-subtitle {
        font-size: 0.95rem;
    }

    .home-landing-admin-btn {
        width: 100%;
        justify-content: center;
    }

    .home-landing-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .home-landing-shell {
        padding: 20px 16px 24px;
    }

    .report-page-toolbar {
        flex-direction: column;
    }

    .report-page-actions {
        width: 100%;
    }

    .report-page-actions .btn-modern {
        flex: 1;
        justify-content: center;
    }
}

.admin-users-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.admin-users-table {
    margin-bottom: 0;
    background: #fff;
}

.admin-users-table thead th {
    background: #f8f9fa;
    font-weight: 600;
    white-space: nowrap;
}

.admin-users-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-sm-modern {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.admin-users-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #667eea;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}

.admin-users-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.admin-users-status--active {
    background: #d4edda;
    color: #155724;
}

.admin-users-status--inactive {
    background: #f8d7da;
    color: #721c24;
}

.app-lang-bar {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1200;
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: 14px;
    background: rgba(24, 68, 135, 0.55);
    border: 1px solid rgba(52, 115, 214, 0.35);
    box-shadow: 0 6px 16px rgba(8, 28, 65, 0.35);
    font-size: 12px;
    font-weight: 600;
}

.lang-switcher-link {
    min-width: 34px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: rgba(214, 229, 255, 0.7);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
}

.lang-switcher-link:hover {
    color: #ffffff;
}

.lang-switcher-link.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #2e8cff 0%, #1f5fb8 100%);
    box-shadow: 0 4px 10px rgba(20, 69, 145, 0.45);
}

.lang-switcher-sep {
    display: none;
}

.admin-flash-alert {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
}

.admin-action-buttons {
    margin-bottom: 20px;
}

.admin-nearmiss-search .form-label {
    color: #4a5568;
    font-weight: 600;
}

.admin-nearmiss-pager {
    padding-top: 4px;
}

.admin-nearmiss-pagination .page-link {
    color: #1e3c72;
    border-color: #d7e3f4;
}

.admin-nearmiss-pagination .page-item.active .page-link {
    background-color: #1e3c72;
    border-color: #1e3c72;
}

.admin-nearmiss-pagination .page-item.disabled .page-link {
    color: #a0aec0;
}
