/* Admin Panel Styles */
.admin-wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

/* Admin Panel Styles */
:root {
    --sidebar-bg: #111827;
    --sidebar-header-bg: #1f2937;
    --sidebar-text: #d1d5db;
    --sidebar-hover-bg: #374151;
    --sidebar-active-bg: #6366f1;
    --sidebar-active-text: #ffffff;
    --sidebar-accent: #6366f1;
    --content-bg: #f3f4f6;
    --transition-speed: 0.3s;
}

.admin-wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    background-color: var(--content-bg);
}

#sidebar {
    min-width: 280px;
    max-width: 280px;
    min-height: 100vh;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

#sidebar .sidebar-header {
    padding: 24px;
    background: var(--sidebar-header-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#sidebar .sidebar-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(to right, #818cf8, #c084fc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#sidebar ul.components {
    padding: 15px;
    flex-grow: 1;
    overflow-y: auto;
}

#sidebar ul.components::-webkit-scrollbar {
    width: 6px;
}

#sidebar ul.components::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

#sidebar ul li {
    margin-bottom: 5px;
}

#sidebar ul li a {
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

#sidebar ul li a i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.7;
}

#sidebar ul li a:hover {
    color: #fff;
    background: var(--sidebar-hover-bg);
}

#sidebar ul li.active > a,
#sidebar ul li a.active {
    color: var(--sidebar-active-text);
    background: var(--sidebar-active-bg);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

#sidebar ul li.active > a i,
#sidebar ul li a.active i {
    opacity: 1;
}

/* Dropdown styling */
#sidebar ul li a.dropdown-toggle::after {
    display: inline-block;
    margin-left: auto;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    transition: transform 0.3s ease;
}

#sidebar ul li a[aria-expanded="true"].dropdown-toggle::after {
    transform: rotate(180deg);
}

#sidebar ul ul {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-left: 10px;
    margin-top: 5px;
    padding-left: 0;
}

#sidebar ul ul a {
    font-size: 0.875rem !important;
    padding-left: 45px !important;
    background: transparent !important;
}

#sidebar ul ul a:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

#sidebar .sidebar-footer {
    padding: 20px;
    background: var(--sidebar-header-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#content {
    width: 100%;
    padding: 20px;
    min-height: 100vh;
    transition: all 0.3s;
}

.card-counter {
    box-shadow: 2px 2px 10px #DADADA;
    margin: 5px;
    padding: 20px 10px;
    background-color: #fff;
    height: 100px;
    border-radius: 5px;
    transition: .3s linear all;
    position: relative;
}

.card-counter:hover {
    box-shadow: 4px 4px 20px #DADADA;
    transition: .3s linear all;
}

.card-counter.primary {
    background-color: #007bff;
    color: #FFF;
}

.card-counter.danger {
    background-color: #ef5350;
    color: #FFF;
}

.card-counter.success {
    background-color: #66bb6a;
    color: #FFF;
}

.card-counter.info {
    background-color: #26c6da;
    color: #FFF;
}

.card-counter.warning {
    background-color: #ffb74d;
    color: #FFF;
}

.card-counter i {
    font-size: 5em;
    opacity: 0.2;
}

.card-counter .count-numbers {
    position: absolute;
    right: 35px;
    top: 20px;
    font-size: 32px;
    display: block;
}

.card-counter .count-name {
    position: absolute;
    right: 35px;
    top: 65px;
    font-style: italic;
    text-transform: capitalize;
    opacity: 0.5;
    display: block;
    font-size: 18px;
}

/*.table-actions a {
    margin-right: 5px;
}*/

/* Login page styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f8f9fa;
}

.login-form {
    width: 100%;
    max-width: 400px;
    padding: 15px;
    margin: auto;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login-form h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* Sidebar toggle functionality */
#sidebar.active {
    margin-left: -280px;
}

#content.active {
    margin-left: 0;
    width: 100%;
}

/* Welcome message styles */
.welcome-message {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    padding-right: 15px;
}

.welcome-message span {
    font-weight: 500;
    color: #333;
}

/* Responsive sidebar */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #sidebarCollapse span {
        display: none;
    }
}

label.required:before {
    content: "* ";
    color: red;
    font-weight: bold;
}

.input-validation-error {
    border: 1px solid red;
}