/* 
 * components.css
 * Core UI Kit styles for the RMIS Design System v2.
 */

/* ---------- Cards ---------- */
.card {
    background: var(--bg-color, #ffffff);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #eaeaea;
}

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

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-color, #333333);
}

/* ---------- Modals ---------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-dialog {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    width: 100%;
    max-width: 500px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-dialog {
    transform: translateY(0);
}

/* ---------- Tables ---------- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.95rem;
}

.data-table th, .data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.data-table tbody tr:hover {
    background-color: #f1f3f5;
}

/* ---------- Sidebars ---------- */
.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: #ffffff;
    border-right: 1px solid #eaeaea;
    padding: 24px;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 32px 0 0 0;
}

.sidebar-nav li {
    margin-bottom: 8px;
}

.sidebar-nav a {
    display: block;
    padding: 10px 16px;
    border-radius: 4px;
    color: var(--text-color, #333);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: var(--primary, #007bff);
    color: #fff;
}
