/* Hanaton Hanglemezgyár - Munkaidő Nyilvántartó Rendszer */
/* Modern, reszponzív dizájn */

:root {
    --primary-color: #7099C8;
    --secondary-color: #6c757d;
    --success-color: #5cb85c;
    --danger-color: #d9534f;
    --warning-color: #f0ad4e;
    --info-color: #5bc0de;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-radius: 0.5rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --transition: all 0.15s ease-in-out;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    color: var(--dark-color);
}

.container-fluid {
    padding: 0;
}

/* Header */
header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid #e74c3c !important;
    transition: all 0.3s ease-in-out;
    padding: 1.5rem 0;
}

/* Asztali módban extra padding */
@media (min-width: 768px) {
    header {
        padding: 2rem 0;
    }
    
    header .container-fluid {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Mobil módban is legyen padding */
@media (max-width: 767px) {
    header .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

header h1 {
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: #ecf0f1 !important;
}

header p {
    color: #bdc3c7 !important;
}

.current-time {
    font-size: 0.9rem;
    opacity: 0.9;
    color: #bdc3c7 !important;
}

/* Vezetői fejléc stílusok */
header.manager-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    border-bottom: 3px solid #e74c3c !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

header.manager-header h1 {
    color: #ecf0f1 !important;
}

header.manager-header p {
    color: #bdc3c7 !important;
}

/* Dolgozói fejléc stílusok */
header.employee-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    border-bottom: 3px solid #e74c3c !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

header.employee-header h1 {
    color: #ecf0f1 !important;
}

header.employee-header p {
    color: #bdc3c7 !important;
}

/* Fejlécek container padding-je minden típusnál */
header .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    header .container-fluid {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.card-header {
    border-bottom: none;
    font-weight: 600;
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    border: none;
    padding: 0.75rem 1.5rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #4cae4c 100%);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #c9302c 100%);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #ec971f 100%);
    color: var(--dark-color);
}

.btn-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #46b8da 100%);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5a7ba8 100%);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-outline-secondary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

/* Forms */
.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(112, 153, 200, 0.25);
}

/* Select mezők specifikus stílusok */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23007bff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
}

/* Select mezők mobil optimalizálása */
@media (max-width: 768px) {
    .form-select {
        font-size: 1rem;
        padding: 0.75rem 2.5rem 0.75rem 1rem;
        min-height: 48px;
    }
}

@media (max-width: 576px) {
    .form-select {
        font-size: 0.9rem;
        padding: 0.5rem 2.5rem 0.5rem 1rem;
        min-height: 44px;
    }
}

/* Time input mezők javítása telefonokon */
input[type="time"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: white;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--dark-color);
    min-height: 44px; /* iOS touch target minimum */
}

input[type="time"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(112, 153, 200, 0.25);
    outline: none;
}

/* iOS Safari time input javítása */
input[type="time"]::-webkit-datetime-edit {
    padding: 0;
}

input[type="time"]::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
}

input[type="time"]::-webkit-datetime-edit-text {
    padding: 0 0.2em;
}

input[type="time"]::-webkit-datetime-edit-hour-field,
input[type="time"]::-webkit-datetime-edit-minute-field {
    padding: 0 0.2em;
}

/* Firefox time input javítása */
input[type="time"]::-moz-datetime-edit {
    padding: 0;
}

/* Date input mezők javítása */
input[type="date"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: white;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--dark-color);
    min-height: 44px;
}

input[type="date"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(112, 153, 200, 0.25);
    outline: none;
}

/* Date input ikon eltávolítása */
input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="date"]::-webkit-datetime-edit {
    padding: 0;
}

input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
}

input[type="date"]::-webkit-datetime-edit-text {
    padding: 0 0.2em;
}

input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
    padding: 0 0.2em;
}

/* Mobil optimalizálás time input mezőkhöz */
@media (max-width: 768px) {
    input[type="time"] {
        font-size: 1rem;
        padding: 0.75rem;
        min-height: 48px;
        width: 100%;
        max-width: 120px;
    }
    
    input[type="time"].form-control-sm {
        padding: 0.5rem;
        min-height: 40px;
        font-size: 0.9rem;
    }
    
    input[type="date"] {
        font-size: 1rem;
        padding: 0.75rem;
        min-height: 48px;
        width: 100%;
        max-width: 150px;
    }
    
    input[type="date"].form-control-sm {
        padding: 0.5rem;
        min-height: 40px;
        font-size: 0.9rem;
        max-width: 130px;
    }
}

@media (max-width: 576px) {
    input[type="time"] {
        font-size: 0.9rem;
        padding: 0.5rem;
        min-height: 44px;
        max-width: 100px;
    }
    
    input[type="time"].form-control-sm {
        padding: 0.4rem;
        min-height: 36px;
        font-size: 0.8rem;
        max-width: 90px;
    }
    
    input[type="date"] {
        font-size: 0.9rem;
        padding: 0.5rem;
        min-height: 44px;
        max-width: 120px;
    }
    
    input[type="date"].form-control-sm {
        padding: 0.4rem;
        min-height: 36px;
        font-size: 0.8rem;
        max-width: 100px;
    }
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Tables */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table th {
    background-color: var(--light-color);
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: var(--dark-color);
}

/* Reszponzív táblázatok */
@media (max-width: 768px) {
    .table-responsive {
        border: none;
        border-radius: 0;
    }
    
    .table-responsive .table {
        margin-bottom: 0;
    }
    
    /* Hosszú szövegek kezelése */
    .table td {
        word-wrap: break-word;
        max-width: 150px;
    }
    
    .table th {
        word-wrap: break-word;
        max-width: 150px;
    }
}

@media (max-width: 576px) {
    .table td {
        max-width: 120px;
        font-size: 0.75rem;
    }
    
    .table th {
        max-width: 120px;
        font-size: 0.75rem;
    }
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
}

.alert-success {
    background: linear-gradient(135deg, #d1e7dd 0%, #badbcc 100%);
    color: #0f5132;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c2c7 100%);
    color: #842029;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #664d03;
}

.alert-info {
    background: linear-gradient(135deg, #cff4fc 0%, #b6effb 100%);
    color: #055160;
}

/* Modals */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.modal-header {
    border-bottom: 2px solid #dee2e6;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
}

/* Bejelentkezési oldal reszponzív stílusok */
@media (max-width: 768px) {
    /* Bejelentkezési kártya */
    #loginSection .card {
        margin: 0 1rem;
        border-radius: 0.75rem;
    }
    
    #loginSection .card-header {
        padding: 1rem;
    }
    
    #loginSection .card-header h4 {
        font-size: 1.2rem;
    }
    
    #loginSection .card-body {
        padding: 1.5rem;
    }
    
    #loginSection .form-control {
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    #loginSection .btn {
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    /* Fejléc mobil optimalizálás */
    header h1 {
        font-size: 1.4rem;
    }
    
    header h1 img {
        height: 30px;
    }
    
    header p {
        font-size: 0.9rem;
    }
    
    header .current-time {
        font-size: 0.8rem;
    }
}

/* Mobil modal optimalizálás */
@media (max-width: 992px) {
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .modal-content {
        border-radius: 0.75rem;
    }
    
    .modal-header {
        padding: 1.25rem;
    }
    
    .modal-body {
        padding: 1.25rem;
    }
    
    .modal-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-content {
        border-radius: 0.5rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    /* Munkaidő történet modal */
    #workHistoryModal .modal-dialog {
        max-width: 95%;
        margin: 0.25rem;
    }
    
    #workHistoryModal .table {
        font-size: 0.8rem;
    }
    
    #workHistoryModal .table th,
    #workHistoryModal .table td {
        padding: 0.5rem 0.25rem;
    }
    
    #workHistoryModal .table-responsive {
        border: none;
    }
    
    #workHistoryModal .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    #workHistoryModal .modal-footer {
        padding: 0.75rem;
    }
    
    /* Kifizetések modal */
    #paymentsModal .modal-dialog {
        max-width: 95%;
        margin: 0.25rem;
    }
    
    #paymentsModal .table {
        font-size: 0.8rem;
    }
    
    #paymentsModal .table th,
    #paymentsModal .table td {
        padding: 0.5rem 0.25rem;
    }
    
    #paymentsModal .table-responsive {
        border: none;
    }
    
    #paymentsModal .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    #paymentsModal .modal-footer {
        padding: 0.75rem;
    }
    
    /* Dolgozói kifizetések modal */
    #employeePaymentsModal .modal-dialog {
        max-width: 95%;
        margin: 0.25rem;
    }
    
    #employeePaymentsModal .table {
        font-size: 0.8rem;
    }
    
    #employeePaymentsModal .table th,
    #employeePaymentsModal .table td {
        padding: 0.5rem 0.25rem;
    }
    
    #employeePaymentsModal .table-responsive {
        border: none;
    }
    
    #employeePaymentsModal .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    #employeePaymentsModal .modal-footer {
        padding: 0.75rem;
    }
    
    /* Profil modal */
    #profileModal .modal-dialog {
        max-width: 95%;
        margin: 0.25rem;
    }
    
    /* Felhasználó szerkesztés modal */
    #editUserModal .modal-dialog {
        max-width: 95%;
        margin: 0.25rem;
    }
}

/* Dashboard Stats */
.h4 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.text-muted {
    font-size: 0.875rem;
}

/* Time Display */
#currentTime {
    font-weight: 600;
    font-size: 1.1rem;
}

#currentDate {
    font-weight: 500;
}

/* Status Indicators */
#currentStatus {
    font-weight: 600;
}

/* Session List */
#todaySessionsList .alert {
    margin-bottom: 0.5rem;
    padding: 0.75rem 1rem;
    border-left: 4px solid var(--primary-color);
}

/* Manager Section */
#managerSection .card {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3e0 100%);
    border: 2px solid var(--warning-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .current-time {
        font-size: 0.8rem;
    }
    
    /* Dolgozói fejléc mobil optimalizálás */
    
    header.employee-header h1 {
        font-size: 1.4rem !important;
    }
    
    header.employee-header h1 img {
        height: 30px !important;
    }
    
    header.employee-header p {
        font-size: 0.9rem !important;
    }
    
    header.employee-header .current-time {
        font-size: 0.75rem !important;
    }
    
    /* Vezetői fejléc mobil optimalizálás */
    
    header.manager-header h1 {
        font-size: 1.4rem !important;
    }
    
    header.manager-header h1 img {
        height: 30px !important;
    }
    
    header.manager-header p {
        font-size: 0.9rem !important;
    }
    
    header.manager-header .current-time {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 576px) {
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .col-md-6, .col-md-4, .col-md-3 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .card-header {
        padding: 0.75rem 1rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    /* Dolgozói fejléc kis képernyő optimalizálás */
    header.employee-header h1 {
        font-size: 1.2rem !important;
        text-align: center;
    }
    
    header.employee-header h1 img {
        height: 25px !important;
    }
    
    header.employee-header p {
        font-size: 0.8rem !important;
        text-align: center;
    }
    
    header.employee-header .current-time {
        font-size: 0.7rem !important;
        text-align: center;
    }
    
    header.employee-header .col-md-6 {
        text-align: center !important;
    }
    
    /* Vezetői fejléc kis képernyő optimalizálás */
    header.manager-header h1 {
        font-size: 1.2rem !important;
        text-align: center;
    }
    
    header.manager-header h1 img {
        height: 25px !important;
    }
    
    header.manager-header p {
        font-size: 0.8rem !important;
        text-align: center;
    }
    
    header.manager-header .current-time {
        font-size: 0.7rem !important;
        text-align: center;
    }
    
    header.manager-header .col-md-6 {
        text-align: center !important;
    }
    
    /* Kis képernyőn extra padding a fejlécekben */
    header .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Extra kis képernyő modal optimalizálás */
    @media (max-width: 576px) {
        .modal-dialog {
            margin: 0.25rem;
            max-width: calc(100% - 0.5rem);
        }
        
        .modal-header {
            padding: 0.75rem;
        }
        
        .modal-body {
            padding: 0.75rem;
        }
        
        .modal-title {
            font-size: 1rem;
        }
        
        /* Táblázatok extra kis képernyőn */
        .modal .table {
            font-size: 0.75rem;
        }
        
        .modal .table th,
        .modal .table td {
            padding: 0.25rem 0.1rem;
        }
        
        /* Munkaidő történet modal extra kis képernyőn */
        #workHistoryModal .modal-dialog {
            margin: 0.1rem;
            max-width: calc(100% - 0.2rem);
        }
        
        #workHistoryModal .table {
            font-size: 0.7rem;
        }
        
        #workHistoryModal .table th,
        #workHistoryModal .table td {
            padding: 0.2rem 0.05rem;
        }
        
        #workHistoryModal .btn {
            padding: 0.4rem 0.6rem;
            font-size: 0.8rem;
        }
        
        #workHistoryModal .modal-header {
            padding: 0.5rem;
        }
        
        #workHistoryModal .modal-body {
            padding: 0.5rem;
        }
        
        #workHistoryModal .modal-footer {
            padding: 0.5rem;
        }
        
        /* Kifizetések modal extra kis képernyőn */
        #paymentsModal .modal-dialog {
            margin: 0.1rem;
            max-width: calc(100% - 0.2rem);
        }
        
        #paymentsModal .table {
            font-size: 0.7rem;
        }
        
        #paymentsModal .table th,
        #paymentsModal .table td {
            padding: 0.2rem 0.05rem;
        }
        
        #paymentsModal .btn {
            padding: 0.4rem 0.6rem;
            font-size: 0.8rem;
        }
        
        #paymentsModal .modal-header {
            padding: 0.5rem;
        }
        
        #paymentsModal .modal-body {
            padding: 0.5rem;
        }
        
        #paymentsModal .modal-footer {
            padding: 0.5rem;
        }
        
        /* Dolgozói kifizetések modal extra kis képernyőn */
        #employeePaymentsModal .modal-dialog {
            margin: 0.1rem;
            max-width: calc(100% - 0.2rem);
        }
        
        #employeePaymentsModal .table {
            font-size: 0.7rem;
        }
        
        #employeePaymentsModal .table th,
        #employeePaymentsModal .table td {
            padding: 0.2rem 0.05rem;
        }
        
        #employeePaymentsModal .btn {
            padding: 0.4rem 0.6rem;
            font-size: 0.8rem;
        }
        
        #employeePaymentsModal .modal-header {
            padding: 0.5rem;
        }
        
        #employeePaymentsModal .modal-body {
            padding: 0.5rem;
        }
        
        #employeePaymentsModal .modal-footer {
            padding: 0.5rem;
        }
        
        /* Gombok kis képernyőn */
        .modal .btn {
            padding: 0.5rem 0.75rem;
            font-size: 0.9rem;
        }
        
        /* Form mezők kis képernyőn */
        .modal .form-control,
        .modal .form-select {
            padding: 0.5rem 0.75rem;
            font-size: 0.9rem;
        }
    }
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .modal-content {
    animation: fadeIn 0.3s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a7ba8;
}

/* Focus States */
.btn:focus, .form-control:focus, .form-select:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(112, 153, 200, 0.25);
}

/* Print Styles */
@media print {
    .btn, .modal, header {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000;
        box-shadow: none;
    }
    
    body {
        background: white;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .table th {
        background-color: #000;
        color: #fff;
    }
} 

/* Csoportos kifizetés modal stílusok */
#bulkPaymentConfirmationModal .modal-dialog {
    max-width: 800px;
}

#bulkPaymentConfirmationModal .modal-header {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    border-bottom: 3px solid #d39e00;
}

#bulkPaymentConfirmationModal .modal-title {
    font-weight: 600;
    color: #212529;
}

#bulkPaymentConfirmationModal .list-group-item {
    border-left: 4px solid #007bff;
    transition: all 0.2s ease-in-out;
}

#bulkPaymentConfirmationModal .list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(2px);
}

#bulkPaymentConfirmationModal .table-sm th,
#bulkPaymentConfirmationModal .table-sm td {
    padding: 0.5rem;
    font-size: 0.9rem;
}

#bulkPaymentConfirmationModal .badge {
    font-size: 0.8rem;
}

/* Kifizetett sorok stílusai */
.table-success {
    background-color: #d1edff !important;
    border-left: 4px solid #28a745;
}

.table-success:hover {
    background-color: #b8daff !important;
}

/* Reszponzív modal stílusok */
@media (max-width: 768px) {
    #bulkPaymentConfirmationModal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    #bulkPaymentConfirmationModal .modal-body {
        padding: 1rem;
    }
    
    #bulkPaymentConfirmationModal .table-sm {
        font-size: 0.8rem;
    }
    
    #bulkPaymentConfirmationModal .table-sm th,
    #bulkPaymentConfirmationModal .table-sm td {
        padding: 0.25rem;
    }
}

@media (max-width: 576px) {
    #bulkPaymentConfirmationModal .modal-dialog {
        margin: 0.25rem;
        max-width: calc(100% - 0.5rem);
    }
    
    #bulkPaymentConfirmationModal .modal-header {
        padding: 0.75rem;
    }
    
    #bulkPaymentConfirmationModal .modal-body {
        padding: 0.75rem;
    }
    
    #bulkPaymentConfirmationModal .modal-footer {
        padding: 0.75rem;
    }
    
    #bulkPaymentConfirmationModal .table-sm {
        font-size: 0.75rem;
    }
    
    #bulkPaymentConfirmationModal .list-group-item {
        padding: 0.5rem;
    }
} 

/* Dolgozó munkastátusz modal z-index javítása */
#employeeStatusModal {
    z-index: 1060 !important;
}

#employeeStatusModal .modal-dialog {
    z-index: 1061 !important;
}

/* Modal z-index hierarchia */
.modal {
    z-index: 1050;
}

.modal-backdrop {
    z-index: 1040;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Modal backdrop tisztítás */
.modal-backdrop.show {
    opacity: 0.5;
}

/* Modal bezárás után backdrop eltávolítása */
body:not(.modal-open) .modal-backdrop {
    display: none !important;
}

/* Különleges modalok magasabb z-index-szel */
#employeeStatusModal,
#bulkPaymentConfirmationModal {
    z-index: 1060 !important;
}

#employeeStatusModal .modal-dialog,
#bulkPaymentConfirmationModal .modal-dialog {
    z-index: 1061 !important;
} 