* {
    font-family: "Solway", serif;
}


body {
    background-color: #f7f8fa;
    margin: 0;
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    height: 70px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    z-index: 1001;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d1202d !important;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 1px;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.menu-toggle {
    font-size: 24px;
    cursor: pointer;
    color: #d1202d;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    color: #a01321;
}

.nav-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.nav-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #d1202d;
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    width: 250px;
    height: calc(100vh - 70px);
    background-color: #181a1e;
    color: #fff;
    padding-top: 20px;
    transition: width 0.3s ease;
    overflow: hidden;
    z-index: 1000;
}

.sidebar.collapsed {
    width: 75px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    margin: 15px 10px;
}

.sidebar .nav-link {
    color: #cfd2d6;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sidebar .nav-link:hover {
    background-color: #d1202d;
    color: #fff;
    transform: translateX(5px);
}

.sidebar .nav-link.active {
    background-color: #d1202d;
    color: #fff;
}

.sidebar.collapsed .nav-link span {
    display: none;
}

.sidebar i {
    font-size: 20px;
    min-width: 30px;
    text-align: center;
}

/* MAIN CONTENT */
main {
    margin-left: 250px;
    padding: 90px 30px 40px 30px;
    transition: margin-left 0.3s ease;
}

.collapsed+main {
    margin-left: 80px;
}

.dashboard-header {
    background: #d1202d;
    color: #fff;
    border-radius: 11px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.card i {
    font-size: 35px;
    color: #d1202d;
}

/* FOOTER */
.footer {
    background-color: #ffffff;
    color: #555;
    text-align: center;
    font-size: 13px;
    padding: 10px;
    border-top: 1px solid #e5e5e5;
    position: fixed;
    bottom: 0;
    left: 250px;
    right: 0;
    font-style: italic;
    transition: left 0.3s ease;
}

.collapsed+main+.footer {
    left: 80px;
}

/* Full wrapper for layout */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* Left Branding Panel */
.left-panel {
    flex: 1;
    background-color: #d1202d;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.logo-box {
    background: #fff;
    border-radius: 14px;
    padding: 12px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
}

.logo-box img {
    max-width: 250px;
}

.left-panel h3 {
    font-weight: 750;
    margin-bottom: 15px;
}

.left-panel p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Right Panel */
.right-panel {
    flex: 1;
    background-color: #f9eaea;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-container {
    background: #fff;
    padding: 35px;
    border-radius: 10px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.login-container h3 {
    color: #d32f2f;
    font-weight: 750;
}

/* Password toggle */
.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
}

.password-toggle i {
    font-size: 18px;
    color: #666;
}

/* Login button */
.btn-login {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    font-size: 16px;
}

/* Forgot password */
.forgot-password {
    margin-top: 15px;
}

.forgot-password a {
    color: #6c757d;
    text-decoration: none;
}

.forgot-password a:hover {
    color: #d32f2f;
    text-decoration: underline;
}

table td,
table th {
    vertical-align: middle !important;
}

/* Responsive Design */

@media (max-width: 992px) {
    .sidebar {
        left: -250px;
        width: 250px;
        transition: all 0.3s ease;
    }

    .sidebar.show {
        left: 0;
    }

    main {
        margin-left: 0;
        margin-top: 75px;
        margin-bottom: 75px;
        padding: 20px;
    }

    .footer {
        left: 0;
    }
    .wrapper {
        flex-direction: column;
    }

    .left-panel {
        padding: 20px;
        height: auto;
    }

    .right-panel {
        padding: 20px;
    }

    .logo-box img {
        max-width: 180px;
    }

    .login-container {
        padding: 25px;
        max-width: 90%;
    }
}
