html, body {
    height: 100%;
    background-color: #f4f6f9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.main-row {
    flex: 1;
    display: flex;
    min-height: 0;
}

.sidebar {
    width: 220px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #343a40 0%, #212529 100%);
}

.content-wrapper {
    flex: 1;
    min-width: 0;
    padding: 25px;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75);
    padding: 10px 15px;
    border-radius: 6px;
    margin: 2px 8px;
    transition: all 0.2s;
}

.sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.sidebar .nav-link i {
    width: 22px;
    text-align: center;
    margin-right: 8px;
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-weight: 600;
    padding: 15px 20px;
}

.card-body {
    padding: 20px;
}

.table th {
    border-top: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
}

.table td {
    vertical-align: middle;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.login-card .card-body {
    padding: 40px;
}

.login-card .form-control {
    border-radius: 8px;
    padding: 12px 16px;
    height: auto;
}

.login-card .btn-primary {
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
}

.btn-action {
    padding: 4px 10px;
    font-size: 0.8rem;
}

.dataTables_wrapper {
    width: 100%;
}

.dataTables_wrapper table.table {
    table-layout: auto;
    width: 100% !important;
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 6px 12px;
    margin-left: 8px;
}

.dataTables_wrapper .dataTables_length select {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 4px 8px;
}

.dataTables_scrollBody table.table td,
.dataTables_scrollHead table.table th {
    white-space: nowrap;
}

.dataTables_scrollHeadInner {
    width: 100% !important;
}

.dataTables_scrollHeadInner table.table {
    width: 100% !important;
}

.table.dataTable thead th,
.table.dataTable tbody td {
    vertical-align: middle;
    padding: 8px 10px;
    font-size: 0.85rem;
}

.table.dataTable thead th {
    border-bottom: 2px solid #dee2e6;
}

.table.dataTable tbody td {
    border-bottom: 1px solid #f0f0f0;
}

.task-pending {
    border-left: 4px solid #ffc107;
}

.task-in_progress {
    border-left: 4px solid #0d6efd;
}

.task-completed {
    border-left: 4px solid #198754;
}

.modal-content {
    border: none;
    border-radius: 12px;
}

.modal-header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.modal-footer {
    border-top: 1px solid rgba(0,0,0,0.05);
}
