/* ============================================= */
/* GRATIS FOUNDATION - UNIVERSAL DASHBOARD STYLES */
/* ============================================= */
/* This file contains styles that should be consistent across all dashboards */

/* ============================================= */
/* CONFIRMATION MODAL STYLES                    */
/* ============================================= */
.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-in-out;
}

.confirmation-modal-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    animation: slideIn 0.3s ease-in-out;
}

.confirmation-modal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.confirmation-modal-icon.danger {
    background: rgba(239, 68, 68, 0.1);
    color: rgba(239, 68, 68, 1);
}

.confirmation-modal-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: rgba(245, 158, 11, 1);
}

.confirmation-modal h3 {
    color: #1f2937;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.confirmation-modal p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 25px 0;
}

.confirmation-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirmation-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.confirmation-btn.primary {
    background: rgba(1, 30, 145, 1);
    color: white;
}

.confirmation-btn.primary:hover {
    background: rgba(1, 25, 120, 1);
    transform: translateY(-1px);
}

.confirmation-btn.danger {
    background: rgba(239, 68, 68, 1);
    color: white;
}

.confirmation-btn.danger:hover {
    background: rgba(220, 38, 38, 1);
    transform: translateY(-1px);
}

.confirmation-btn.secondary {
    background: rgba(243, 244, 246, 1);
    color: rgba(107, 114, 128, 1);
    border: 1px solid rgba(209, 213, 219, 1);
}

.confirmation-btn.secondary:hover {
    background: rgba(229, 231, 235, 1);
    transform: translateY(-1px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateY(-20px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

/* ============================================= */
/* PASSWORD TOGGLE STYLES                       */
/* ============================================= */
.password-input-container {
    position: relative;
    display: block;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 17px;
    top: 85px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    width: 20px;
    height: 20px;
    background-image: url('../images/visible.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: opacity 0.2s ease;
}

.password-toggle:hover {
    opacity: 0.7;
}

.password-toggle.hidden {
    background-image: url('../images/hidden.png');
}

.password-input-container input[type="password"],
.password-input-container input[type="text"] {
    padding-right: 45px !important;
    width: 100%;
    box-sizing: border-box;
}

/* ============================================= */
/* UNIVERSAL TABLE STYLES                       */
/* ============================================= */
.table-container {
    overflow-x: auto;
    border-radius: 0 0 16px 16px;
    border: none;
    margin: 0;
}

.users-table,
.logs-table,
.regions-table,
.trades-table,
.apprentices-table,
.programs-table,
.reports-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Nunito Sans';
    margin: 0;
}

.users-table th,
.logs-table th,
.regions-table th,
.trades-table th,
.apprentices-table th,
.programs-table th,
.reports-table th {
    background: rgba(1, 30, 145, 1);
    color: white;
    font-weight: bold;
    padding: 18px 15px;
    text-align: left;
    border: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.users-table td,
.logs-table td,
.regions-table td,
.trades-table td,
.apprentices-table td,
.programs-table td,
.reports-table td {
    padding: 18px 15px;
    border-bottom: 1px solid rgba(245, 245, 245, 1);
    color: rgba(40, 45, 50, 1);
    font-size: 14px;
    vertical-align: middle;
}

.users-table tr:hover,
.logs-table tr:hover,
.regions-table tr:hover,
.trades-table tr:hover,
.apprentices-table tr:hover,
.programs-table tr:hover,
.reports-table tr:hover {
    background: rgba(248, 250, 252, 0.8);
}

.users-table tbody tr:last-child td,
.logs-table tbody tr:last-child td,
.regions-table tbody tr:last-child td,
.trades-table tbody tr:last-child td,
.apprentices-table tbody tr:last-child td,
.programs-table tbody tr:last-child td,
.reports-table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================= */
/* UNIVERSAL STATUS BADGES STYLES              */
/* ============================================= */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: rgba(76, 175, 80, 0.1);
    color: rgba(76, 175, 80, 1);
}

.status-badge.inactive {
    background: rgba(255, 152, 0, 0.1);
    color: rgba(255, 152, 0, 1);
}

.status-badge.success {
    background: rgba(76, 175, 80, 0.1);
    color: rgba(76, 175, 80, 1);
}

.status-badge.failed {
    background: rgba(255, 67, 67, 0.1);
    color: rgba(255, 67, 67, 1);
}

.status-badge.completed {
    background: rgba(33, 150, 243, 0.1);
    color: rgba(33, 150, 243, 1);
}

.status-badge.dropped {
    background: rgba(255, 67, 67, 0.1);
    color: rgba(255, 67, 67, 1);
}

.status-badge.suspended {
    background: rgba(255, 152, 0, 0.1);
    color: rgba(255, 152, 0, 1);
}

.status-badge.pending {
    background: rgba(156, 39, 176, 0.1);
    color: rgba(156, 39, 176, 1);
}

.status-badge.submitted {
    background: rgba(76, 175, 80, 0.1);
    color: rgba(76, 175, 80, 1);
}

.status-badge.approved {
    background: rgba(33, 150, 243, 0.1);
    color: rgba(33, 150, 243, 1);
}

.status-badge.revision {
    background: rgba(255, 152, 0, 0.1);
    color: rgba(255, 152, 0, 1);
}

/* ============================================= */
/* UNIVERSAL ACTION BUTTONS                     */
/* ============================================= */
.action-btn {
    background: rgba(1, 30, 145, 1);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-btn:hover {
    background: rgba(1, 25, 120, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(1, 30, 145, 0.3);
}

.action-btn.edit-btn {
    background: rgba(33, 150, 243, 1);
}

.action-btn.edit-btn:hover {
    background: rgba(25, 118, 210, 1);
}

.action-btn.delete-btn {
    background: rgba(244, 67, 54, 1);
}

.action-btn.delete-btn:hover {
    background: rgba(211, 47, 47, 1);
}

.action-btn.view-btn {
    background: rgba(76, 175, 80, 1);
}

.action-btn.view-btn:hover {
    background: rgba(69, 160, 73, 1);
}

/* ============================================= */
/* UNIVERSAL EXPORT BUTTON STYLES              */
/* ============================================= */
.export-logs-btn {
    background: rgba(1, 30, 145, 1);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
}

.export-logs-btn:hover {
    background: rgba(1, 25, 120, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(1, 30, 145, 0.3);
}

/* ============================================= */
/* UNIVERSAL PAGINATION STYLES                 */
/* ============================================= */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-top: 1px solid rgba(245, 245, 245, 1);
    background: rgba(255, 255, 255, 1);
}

.pagination-info {
    font-size: 14px;
    color: rgba(100, 100, 100, 1);
    font-family: 'Nunito Sans';
}

.pagination-controls {
    display: flex;
    gap: 4px;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid rgba(220, 220, 220, 1);
    background: rgba(255, 255, 255, 1);
    color: rgba(60, 60, 60, 1);
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Nunito Sans';
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(.disabled) {
    background: rgba(248, 250, 252, 1);
    border-color: rgba(1, 30, 145, 1);
    color: rgba(1, 30, 145, 1);
}

.pagination-btn.active {
    background: rgba(1, 30, 145, 1);
    color: white;
    border-color: rgba(1, 30, 145, 1);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(245, 245, 245, 1);
    color: rgba(150, 150, 150, 1);
}

/* ============================================= */
/* UNIVERSAL MANAGEMENT CARD STYLES            */
/* ============================================= */
.management-card {
    background: rgba(255, 255, 255, 1);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 30px 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.management-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ============================================= */
/* UNIVERSAL FLOATING ACTION BUTTONS           */
/* ============================================= */
.add-apprentice-btn,
.add-program-btn,
.add-report-btn,
.add-user-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(1, 30, 145, 1);
    color: white;
    border: none;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-apprentice-btn:hover,
.add-program-btn:hover,
.add-report-btn:hover,
.add-user-btn:hover {
    background: rgba(1, 25, 120, 1);
    transform: scale(1.1);
}

/* ============================================= */
/* UNIVERSAL SEARCH STYLES                     */
/* ============================================= */
.search-container {
    position: relative;
}

.search-input {
    width: 300px;
    padding: 12px 20px;
    border: 2px solid rgba(220, 220, 220, 1);
    border-radius: 25px;
    font-size: 14px;
    font-family: 'Nunito Sans', sans-serif;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: rgba(1, 30, 145, 1);
    box-shadow: 0 0 0 3px rgba(1, 30, 145, 0.1);
}

.search-input::placeholder {
    color: rgba(150, 150, 150, 1);
}

/* ============================================= */
/* UNIVERSAL CONTENT SECTION STYLES            */
/* ============================================= */
.content-section {
    display: none;
    animation: fadeIn 0.3s ease;
    margin: 0;
    padding: 0;
}

.content-section.active {
    display: block;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(230, 230, 230, 1);
}

.search-header h2 {
    color: rgba(1, 30, 145, 1);
    font-family: 'Nunito Sans';
    font-weight: bold;
    font-size: 28px;
    margin: 0;
}

/* ============================================= */
/* UNIVERSAL FADE IN ANIMATION                 */
/* ============================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================= */
/* UNIVERSAL REPORT TYPE BUTTONS               */
/* ============================================= */
.report-type-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.report-type-btn {
    background: rgba(255, 255, 255, 1);
    color: rgba(1, 30, 145, 1);
    border: 2px solid rgba(1, 30, 145, 1);
    padding: 12px 24px;
    border-radius: 25px;
    font-family: 'Nunito Sans';
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-type-btn:hover {
    background: rgba(1, 30, 145, 0.1);
    transform: translateY(-2px);
}

.report-type-btn.active {
    background: rgba(1, 30, 145, 1);
    color: white;
    box-shadow: 0 4px 15px rgba(1, 30, 145, 0.3);
}

/* ============================================= */
/* UNIVERSAL REPORT TABLE CONTAINERS           */
/* ============================================= */
.report-table-container {
    animation: fadeIn 0.3s ease;
}

.export-all-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}
