
:root {
    --primary-color: #f6a60f;
    --secondary-color: #34495e;
    --black-color: #020202;
    --background-color: #f9f9f9;
}

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

body {
    font-family: "Rubik", serif;
    overflow-x: hidden;
}
.layout {
    display: flex;
    width: 100%;
}
.row {
    margin-left: 0;
    margin-top: 0;
    margin-right: -2px;
}
.sidebar {
    background-color: var(--secondary-color);
    color: white;
    width: 250px;
    padding: 1rem;
    min-height: 100vh;
}
.logo img {
    width: 100%;
}
.sidebar .link {
    font-size: 20px;
    font-weight: 300;
    border-radius: 15px;
    padding: 5px 10px;
    transition: .3s all ease-in-out;
    /* background-color: red; */
}
.sidebar .link:hover {
    cursor: pointer;
    background-color: var(--primary-color);
}
.sidebar .link a {
    color: white;
    text-decoration: none;
}
.sidebar .link.active {
    background-color: var(--primary-color);
}
.sidebar .link img {
    width: 23px;
    margin-right: 1rem;
}
.sidebar .foota {
    font-size: 13px;
    font-weight: 300;
    color: rgba(176, 200, 222, 0.8);
}
.rightbar {
    background-color: var(--background-color);
    width: 100%;
}
.rightbar .navbar {
    background-color: white;
}
.rightbar .title {
    color: var(--secondary-color);
    font-weight: 500;
}
.rightbar .stat-box {
    background-color: white;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-radius: 15px;
    padding: 15px;
    display: flex;
    /* flex-direction: column; */
    align-items: center;
    border: 1px solid white;
    transition: all .3s ease-in;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}
.rightbar .stat-box:hover {
    border: 1px solid var(--primary-color);
}
.rightbar .stat-box img {
    width: 80px;
}
.rightbar .stat-box .number {
    font-size: 30px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0;
}
.rightbar .stat-box .name {
    color: #808080;
}
.rightbar .profile-card {
    background-color: var(--secondary-color);
    margin-top: 1rem;
    padding: 15px;
    border-radius: 15px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
}
.rightbar .profile-card p {
    line-height: 0.8rem;
}
.rightbar .profile-card img {
    width: 80px;
    margin-bottom: 1rem;
}
.rightbar .profile-card .name {
    font-weight: 500;
    font-size: 20px;
}
.rightbar .profile-card .role {
    opacity: 0.5;
}
.rightbar .profile-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all .3s ease-in;
}
.rightbar .profile-card a:hover {
    cursor: pointer;
    text-decoration: underline;
}

/* Navbar Styles */
.navbar {
    background-color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.navbar-content {
    display: flex;
    align-items: center;
    width: 100%;
}

/* Spacer to push profile to the right */
.navbar-spacer {
    flex-grow: 1;
}

.page-title {
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
    margin-left: auto; /* This helps with right alignment */
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.profile-trigger:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-name {
    font-weight: 500;
    color: var(--secondary-color);
    white-space: nowrap;
}

.dropdown-icon {
    color: var(--secondary-color);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.profile-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.profile-menu {
    position: absolute;
    right: 0;
    top: 100%;
    width: 280px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.profile-dropdown:hover .profile-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Rest of your existing profile menu styles... */
.profile-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.menu-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.menu-name {
    font-weight: 600;
    margin: 0;
    color: var(--secondary-color);
}

.menu-role {
    font-size: 0.8rem;
    color: #666;
    margin: 0.25rem 0 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.menu-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

.logout-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 0.5rem;
    text-align: left;
    color: var(--secondary-color);
    font-family: inherit;
    font-size: inherit;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.05);
}

/** ==============================================================================
    Tools
=============================================================================== **/
.tool-tab {
    background-color: white !important;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-radius: 15px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid white;
    transition: all .3s ease-in;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    height: 80%;
    width: 16%;
    margin-right: 5px;
}
.tool-tab:hover {
    border: 1px solid var(--primary-color);
    cursor: pointer;
}
.tool-tab img {
    width: 40px;
    margin-bottom: 1rem;
}
/* .tool-tab .number {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary-color);
} */
.tool-tab .name {
    color: #808080;
    font-size: 12;
}
.table {
    background-color: white;
    border-radius: 15px;
}
.table .btn-add {
    background-color: var(--primary-color);
    color: white;
    border-radius: 15px;
    transition: all .3s ease-in;
    outline: none;
    box-shadow: none;
}

.table .btn-add:hover {
    transform: translateY(5px);
    opacity: 0.8;
}

.table .btn-add:focus, 
.table .btn-add:active:focus,
.table .btn-add:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}
.table .btn-action {
    /* background-color: var(--secondary-color); */
    color: white;
    padding: 1px 4px;
    border-radius: 15px;
    font-size: 12px;
    outline: none;
    box-shadow: none;
    transition: all .3s ease-in;
}
.table .btn-action:hover {
    transform: translateY(5px);
    opacity: 0.8;
}
.table .btn-action:focus, 
.table .btn-action:active:focus,
.table .btn-action:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}
.table img {
    width: 20px;
}
.nav-tabs {
    border: none;
}
.nav-tabs .nav-link.active {
    border: 1px solid var(--primary-color);
}
.nav-tabs .nav-link {
    border-radius: 15px;
    /* box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px; */
    border: 1px solid white;
    background-color: transparent;
    padding: 1rem;
}


.auth-wrap {
    background-color: var(--background-color);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-wrap .auth-box {
    width: 400px;
    background-color: white;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    margin: auto;
    color: var(--secondary-color);
}
.auth-wrap .auth-box input {
    height: 50px;
    border-radius: 10px;
    border: 1px solid var(--secondary-color);
    width: 100%;
    padding: 8px;
    color: var(--secondary-color);
    transition: all .3s ease-in;
}
.auth-wrap .auth-box input:focus {
    border: 1px solid var(--primary-color) !important;
}

.auth-wrap .auth-box .btn {
    background-color: var(--primary-color);
    color: white;
    width: 100%;
    font-size: larger;
    border-radius: 15px;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-bottom: 1rem;
    transition: all .3s ease-in;
}
.auth-wrap .auth-box .btn:hover {
    opacity: 0.8;
    transform: translateY(8px);
}
.auth-wrap .auth-box .btn a {
    text-decoration: none;
    color: white;
}
.auth-wrap .auth-box .btn a:hover {
    text-decoration: none;
}
.auth-wrap .auth-box a:hover {
    text-decoration: underline;
    cursor: pointer;
}
.home-wrap {
    background-color: var(--secondary-color);
    height: 100vh;
    display: flex;
    align-items: center;
}
.home-wrap .home-box {
    /* background-color: red; */
    width: 40%;
    margin: auto;
    text-align: center;
    color: white;
}
.home-wrap .home-box .btn {
    background-color: var(--primary-color);
    color: white;
    font-size: 25px;
    border-radius: 18px;
    letter-spacing: 0.2rem;
    padding: .5rem 1rem;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    transition: all .3s ease-in;
}
.home-wrap .home-box .btn:hover {
    opacity: 0.8;
    transform: translateY(10px);
}
.home-wrap .home-box .btn a {
    text-decoration: none;
    color: white;
}
/* Modal Styles */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
    border: none;
}

.modal-header {
    background-color: var(--secondary-color);
    color: white;
    border: none;
}

.modal-body {
    background-color: var(--background-color);
}

.modal-footer {
    background-color: var(--background-color);
    border: none;
}

.modal-title {
    font-weight: 500;
}

.modal .form-label {
    color: var(--secondary-color);
}

.modal .form-control,
.modal .form-select {
    height: 50px;
    border-radius: 10px;
    border: 1px solid var(--secondary-color);
    padding: 8px;
    color: var(--secondary-color);
    transition: all .3s ease-in;
}

.modal .form-control:focus,
.modal .form-select:focus {
    border: 1px solid var(--primary-color) !important;
    outline: none;
}

.modal input:focus,
.modal select:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: inherit;
}

.modal .btn-close {
    filter: invert(1);
}

.modal .btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    border-radius: 15px;
    padding: 10px 20px;
    transition: all .3s ease-in;
}

.modal .btn-primary {
    background-color: var(--primary-color);
    color: white;
    border-radius: 15px;
    padding: 10px 20px;
    transition: all .3s ease-in;
}

.modal .btn-secondary:hover,
.modal .btn-primary:hover {
    opacity: 0.8;
}

#viewUserModal label {
    width: 30%;
    display: flex;
    align-items: center;
}
#viewUserModal #viewFirstName,
#viewUserModal #viewLastName,
#viewUserModal #viewSapNumber,
#viewUserModal #viewEmail,
#viewUserModal #viewRole,
#viewUserModal #viewLibrary {
    width: 75%;
}

/* Profile Page Styles */
.profile-card {
    background-color: var(--secondary-color);
    margin-top: 1rem;
    padding: 15px;
    border-radius: 15px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.profile-card p {
    line-height: 1.2rem;
    margin-bottom: 0.5rem;
}

.profile-card img {
    width: 80px;
    margin-bottom: 1rem;
}

.profile-card .name {
    font-weight: 500;
    font-size: 20px;
}

.profile-card .role {
    opacity: 0.8;
    font-size: 14px;
}

.profile-box {
    background-color: white;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-radius: 15px;
    padding: 18px 18px;
    border: 1px solid white;
    transition: all .3s ease-in;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.profile-box:hover {
    border: 1px solid var(--primary-color);
}

.profile-box h3 {
    color: var(--secondary-color);
}

.profile-box label {
    color: var(--secondary-color);
    width: 200px !important;
    display: flex;
    align-items: center;
}

.profile-box input,
.profile-box select,
.profile-box textarea {
    margin-right: 1rem;
    height: 50px; 
    border-radius: 10px; 
    border: 1px solid var(--secondary-color); 
    padding: 8px; 
    color: var(--secondary-color); 
    transition: all .3s ease-in;
    width: 100%;
}

.profile-box input:focus,
.profile-box select:focus,
.profile-box textarea:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: inherit;
}

.profile-box .btn {
    background-color: var(--primary-color); 
    color: white; 
    border-radius: 15px; 
    padding: 10px 20px; 
    transition: all .3s ease-in; 
    width: 40%;
}

.profile-box .btn:hover {
    transform: translateY(8px);
    opacity: 0.8;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.form-control:focus, .form-select:focus {
    border: 1px solid var(--primary-color) !important;
    outline: none;
}

/* Spinner styles */
.spinner-border {
    vertical-align: middle;
    margin-left: 8px;
}

/* Button loading state */
.btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

/* Spinner styles */
.spinner-border {
    vertical-align: middle;
    margin-left: 8px;
}

/* Button loading state */
.btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

.add-library-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.add-library-icon img {
    width: 50%;
}