:root {
    --primary-color: #4e73df;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
    --bg-gradient-start: #4e73df;
    --bg-gradient-end: #224abe;
    --sidebar-width: 250px;
    --font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--light-color);
    color: var(--dark-color);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #4e73df;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
    color: #224abe;
}

/* Login Page Styles */
.limiter {
    width: 100%;
    margin: 0 auto;
}

.container-login100 {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
}

.wrap-login100 {
    width: 400px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    padding: 50px 55px 33px 55px;
    box-shadow: 0 10px 30px 0px rgba(0, 0, 0, 0.15);
}

.login100-form {
    width: 100%;
}

.login100-form-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid var(--primary-color);
}

.login100-form-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login100-form-title {
    font-size: 24px;
    color: var(--dark-color);
    line-height: 1.2;
    text-align: center;
    display: block;
    margin-bottom: 30px;
    font-weight: 800;
}

.wrap-input100 {
    position: relative;
    width: 100%;
    z-index: 1;
    margin-bottom: 20px;
}

.input100 {
    font-size: 15px;
    line-height: 1.5;
    color: #666;
    display: block;
    width: 100%;
    background: #f0f2f5;
    height: 50px;
    border-radius: 25px;
    padding: 0 30px 0 68px;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.input100:focus {
    outline: none;
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.symbol-input100 {
    font-size: 15px;
    display: flex;
    align-items: center;
    position: absolute;
    border-radius: 25px;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-left: 35px;
    pointer-events: none;
    color: #666;
    transition: all 0.4s;
}

.input100:focus+.focus-input100+.symbol-input100 {
    color: var(--primary-color);
    padding-left: 28px;
}

.container-login100-form-btn {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 20px;
}

.login100-form-btn {
    font-size: 15px;
    line-height: 1.5;
    color: #fff;
    text-transform: uppercase;
    width: 100%;
    height: 50px;
    border-radius: 25px;
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 25px;
    transition: all 0.4s;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.login100-form-btn:hover {
    background: #224abe;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Dashboard Styles */
.nvbar-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: 70px;
    background-color: #fff;
    box-shadow: 0 .15rem 1.75rem 0 rgba(58, 59, 69, .15);
}

.navbar {
    height: 100%;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 800;
    font-size: 1.5rem;
}

.sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background-color: var(--primary-color);
    background-image: linear-gradient(180deg, var(--bg-gradient-start) 10%, var(--bg-gradient-end) 100%);
    padding-top: 1rem;
    transition: all 0.3s;
    z-index: 1000;
}

.sidebar a {
    padding: 1rem 1.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, .8);
    display: block;
    border-left: 3px solid transparent;
}

.sidebar a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, .1);
}

.sidebar a.active {
    color: #fff;
    font-weight: 700;
    border-left-color: #fff;
    background-color: rgba(255, 255, 255, .1);
}

.sidebar i {
    margin-right: 0.75rem;
    width: 1.25rem;
    text-align: center;
}

.content {
    margin-top: 70px;
    margin-left: var(--sidebar-width);
    padding: 1.5rem;
    transition: all 0.3s;
}

/* Card Styles */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid #e3e6f0;
    border-radius: 0.35rem;
    box-shadow: 0 .15rem 1.75rem 0 rgba(58, 59, 69, .15);
    margin-bottom: 1.5rem;
}

.card h5 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.card h2 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 0;
}

.card hr {
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, .1);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 0;
        overflow: hidden;
    }

    .content {
        margin-left: 0;
    }

    .sidebar.toggled {
        width: var(--sidebar-width);
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.p-4 {
    padding: 1.5rem;
}

.shadow {
    box-shadow: 0 .15rem 1.75rem 0 rgba(58, 59, 69, .15) !important;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .nvbar-top {
    background-color: #1e1e1e;
    box-shadow: 0 .15rem 1.75rem 0 rgba(0, 0, 0, .5);
}

body.dark-mode .card {
    background-color: #1e1e1e;
    border: 1px solid #333;
}

body.dark-mode .card h2,
body.dark-mode .card h5,
body.dark-mode .card h6 {
    color: #e0e0e0;
}

body.dark-mode .table {
    color: #e0e0e0;
}

body.dark-mode .table-bordered td,
body.dark-mode .table-bordered th {
    border: 1px solid #333;
}

body.dark-mode .modal-content {
    background-color: #1e1e1e;
    color: #e0e0e0;
    border: 1px solid #333;
}

body.dark-mode .close {
    color: #e0e0e0;
}

body.dark-mode .form-control {
    background-color: #2d2d2d;
    border: 1px solid #333;
    color: #e0e0e0;
}

body.dark-mode .form-control:focus {
    background-color: #333;
    color: #fff;
    border-color: var(--primary-color);
}

/* Fix for DataTables in Dark Mode */
body.dark-mode .page-link {
    background-color: #2d2d2d;
    border-color: #333;
    color: #e0e0e0;
}

body.dark-mode .page-item.disabled .page-link {
    background-color: #1e1e1e;
    border-color: #333;
}

body.dark-mode .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Fix for table warnings in Dark Mode - ensure text is readable on yellow bg */
body.dark-mode .table .table-warning,
body.dark-mode .table .table-warning>th,
body.dark-mode .table .table-warning>td {
    color: #212529;
    background-color: #ffeeba;
    border-color: #ffdf7e;
}