/* Employees Specific Styles */

.employees-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.employees-header h2 {
    font-size: 28px;
    color: #2c3e50;
}

.employees-header div {
    display: flex;
    gap: 10px;
}

/* Form row layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* QR Code input */
.qr-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.qr-input-row input { flex: 1; }
.hint {
    font-size: 11px;
    color: #95a5a6;
    font-weight: normal;
    margin-left: 6px;
}

/* QR preview in form */
.qr-preview {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
}
.qr-preview-label {
    font-size: 11px;
    color: #95a5a6;
    margin: 0;
}

/* QR button in table */
.btn-qr {
    background-color: #8e44ad;
    color: white;
    border: none;
}
.btn-qr:hover { background-color: #7d3c98; }

/* QR Card Modal */
.modal-sm .modal-content { max-width: 320px; }
.modal { display: flex; align-items: center; justify-content: center; }

.qr-card {
    text-align: center;
    border: 2px solid #2c3e50;
    border-radius: 10px;
    padding: 20px;
    background: white;
    margin-bottom: 16px;
}
.qr-card-header h3 {
    font-size: 13px;
    color: #2c3e50;
    margin: 4px 0 12px;
}
.qr-name { font-weight: bold; font-size: 16px; margin: 10px 0 2px; color: #2c3e50; }
.qr-id   { font-size: 13px; color: #7f8c8d; margin: 2px 0; }
.qr-dept { font-size: 12px; color: #95a5a6; margin: 2px 0; }

.qr-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.search-section {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.employees-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.employees-table thead {
    background-color: #34495e;
    color: white;
}

.employees-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.employees-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ecf0f1;
}

.employees-table tbody tr:hover {
    background-color: #f8f9fa;
}

.employees-table .btn {
    margin: 0 5px;
    margin-bottom: 5px;
}

/* Modal Styles */
#employeeModal h3,
#deleteModal h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

#deleteModal p {
    color: #7f8c8d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.modal-content form {
    display: flex;
    flex-direction: column;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.form-group input:disabled {
    background-color: #ecf0f1;
    cursor: not-allowed;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.form-actions .btn {
    flex: 1;
    max-width: 150px;
}

/* Responsive */
@media (max-width: 768px) {
    .employees-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .search-section {
        flex-direction: column;
    }

    .search-section .btn {
        width: 100%;
    }

    .employees-table {
        font-size: 12px;
    }

    .employees-table th,
    .employees-table td {
        padding: 8px;
    }

    .employees-table .btn {
        padding: 4px 8px;
        font-size: 11px;
        margin: 2px;
    }

    .modal-content {
        width: 95%;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        max-width: 100%;
    }
}
