/* General Body & Font */
body { 
    font-family: 'Inter', sans-serif; 
    background-color: #f3f4f6; /* bg-gray-100 */
    color: #1f2937; /* text-gray-800 */
}

/* --- TABS --- */
.tab-btn {
    whitespace: nowrap;
    padding: 1rem 0.25rem;
    border-bottom-width: 2px;
    border-color: transparent;
    font-medium: 500;
    font-size: 0.875rem; /* text-sm */
    color: #6b7280; /* text-gray-500 */
    transition: all 0.2s ease-in-out;
}
.tab-btn:hover {
    color: #374151; /* text-gray-700 */
    border-color: #d1d5db; /* border-gray-300 */
}
.tab-btn.active {
    border-color: #4f46e5; /* border-indigo-600 */
    color: #4f46e5; /* text-indigo-600 */
}

/* --- MODAL STYLES --- */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
    position: relative;
    background: white;
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* shadow-2xl */
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
}

/* --- FORM STYLES --- */
.form-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    color: #374151; /* text-gray-700 */
}
.form-input, .form-select, .form-textarea {
    display: block;
    width: 100%;
    border-radius: 0.375rem; /* rounded-md */
    border: 1px solid #d1d5db; /* border-gray-300 */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input, .form-select {
    height: 2.5rem; /* h-10 */
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}
.form-textarea {
    padding: 0.5rem 0.75rem;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #a5b4fc; /* focus:border-indigo-300 */
    box-shadow: 0 0 0 3px rgba(165, 180, 252, 0.4); /* focus:ring */
}
.form-checkbox {
    height: 1rem;
    width: 1rem;
    border-radius: 0.25rem;
    border-color: #d1d5db;
    color: #4f46e5;
}

/* --- BUTTONS --- */
.btn-primary {
    background-color: #4f46e5; /* bg-indigo-600 */
    color: white;
    font-weight: 600; /* font-semibold */
    padding: 0.5rem 1rem;
    border-radius: 0.375rem; /* rounded-lg */
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.1);
    transition: background-color 0.2s;
}
.btn-primary:hover { background-color: #4338ca; /* hover:bg-indigo-700 */ }

.btn-secondary {
    background-color: #e5e7eb; /* bg-gray-200 */
    color: #1f2937; /* text-gray-800 */
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}
.btn-secondary:hover { background-color: #d1d5db; /* hover:bg-gray-300 */ }

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* 8px */
    color: white;
    font-weight: 600; /* font-semibold */
    padding: 0.5rem 1rem; /* py-2 px-4 */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px 0 rgba(0,0,0,0.06); /* shadow-md */
    transition: background-color 0.2s;
    text-decoration: none;
    height: 40px;
}
.nav-btn svg {
    width: 1.25rem; /* w-5 */
    height: 1.25rem; /* h-5 */
}


/* --- TABLE STYLES --- */
#asset-table-head th {
    padding: 0.75rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #4b5563; /* text-gray-600 */
    cursor: pointer;
}
#asset-table-body td {
    padding: 1rem 1.5rem;
    white-space: nowrap;
    font-size: 0.875rem;
    color: #374151;
}
#asset-table-body tr:hover {
    background-color: #f9fafb; /* hover:bg-gray-50 */
}
#asset-table-body tr td:not(:first-child):not(:last-child) {
    cursor: pointer;
}

/* Actions Menu */
.actions-menu { position: relative; }
.actions-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 10;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    padding: 0.5rem 0;
    min-width: 8rem;
}
.actions-dropdown.show { display: block; }
.actions-dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
}
.actions-dropdown a:hover { background-color: #f3f4f6; }


/* --- EMPLOYEE CARDS --- */
.employee-card {
    background-color: white;
    padding: 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px 0 rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.employee-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

/* --- PAGINATION --- */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
}
.pagination-arrow {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}
.pagination-arrow:hover { background-color: #e5e7eb; }
.pagination-arrow.disabled { cursor: not-allowed; opacity: 0.5; }
.pagination-dots { display: flex; align-items: center; }
.pagination-dot {
    cursor: pointer;
    height: 0.75rem;
    width: 0.75rem;
    margin: 0 0.3rem;
    background-color: #d1d5db; /* bg-gray-300 */
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}
.pagination-dot.active, .pagination-dot:hover {
    background-color: #6b7280; /* bg-gray-500 */
}


/* --- MISC --- */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.chart-container {
    position: relative;
    height: 350px;
    width: 100%;
}
