:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #3f37c9;
    --accent: #4895ef;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #4cc9f0;
    --warning: #f8961e;
    --danger: #f72585;
    --gray: #adb5bd;
    --dark-gray: #495057;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'IranSans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.logo i {
    font-size: 2.2rem;
    margin-left: 15px;
    color: white;
    transition: all 0.3s ease;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dashboard {
    display: flex;
    min-height: 100vh;
    transition: all 0.3s ease;
}

.sidebar {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 20px 0;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.1);
    transform: translateX(0);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.sidebar.collapsed {
    transform: translateX(-100%);
    width: 0;
    padding: 0;
}

.button-link {
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    animation: fadeInDown 0.5s ease;
}

.user-profile {
    display: flex;
    align-items: center;
    background: white;
    padding: 8px 15px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.user-profile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    object-fit: cover;
    border: 2px solid var(--accent);
}

/* Sidebar with Animation */
.sidebar {
    width: 280px;
    padding: 20px 0;
    position: relative;
    z-index: 100;
}

.sidebar.collapsed {
    transform: translateX(-100%);
    width: 0;
    padding: 0;
}

.nav-menu {
    padding: 0 20px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    z-index: -1;
}

.nav-item:hover::before {
    right: 0;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-5px);
}

.nav-item i {
    margin-left: 15px;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.nav-item span {
    transition: all 0.3s ease;
}

.nav-item:hover i {
    transform: scale(1.1);
    color: white;
}

.main-content {
    flex: 1;
    padding: 30px;
    transition: all 0.3s ease;
}

.main-content.expanded {
    margin-right: 0;
}

.menu-toggle {
    display: none;
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.menu-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.page-title h1 {
    font-size: 1.8rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.page-title h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease;
}



.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    opacity: 0;
    z-index: -1;
    transition: all 0.4s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    color: white;
}

.stat-card:hover .stat-title,
.stat-card:hover .stat-change {
    color: rgba(255, 255, 255, 0.9) !important;
}

.stat-card.total {
    border-top: 4px solid var(--primary);
}

.stat-card.in {
    border-top: 4px solid var(--success);
}

.stat-card.out {
    border-top: 4px solid var(--danger);
}

.stat-card.available {
    border-top: 4px solid var(--warning);
}

.stat-title {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.stat-change {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.stat-change i {
    margin-left: 5px;
    transition: all 0.3s ease;
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: var(--danger);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.logo i {
    font-size: 2.2rem;
    margin-left: 15px;
    color: white;
    transition: all 0.3s ease;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
    padding: 20px;
    animation: fadeIn 0.8s ease;
}

.stat-card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 7px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-title {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 15px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-change {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: var(--danger);
}

.user-profile {
    position: relative;
    cursor: pointer;
    z-index: 1;
}


.profile-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.action-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease;
}

.panel {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 7px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.panel::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: all 0.3s ease;
}

.panel:hover::after {
    height: 8px;
}

.panel-title {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--primary);
    display: flex;
    align-items: center;
    position: relative;
}

.panel-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

.panel-title i {
    margin-left: 15px;
    color: var(--accent);
    font-size: 1.4rem;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--dark-gray);
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.input-group input:focus {
    border-color: var(--accent);
    background: white;
    outline: none;
    box-shadow: 0 0 0 4px rgba(72, 149, 239, 0.2);
}

/* Buttons with Ripple Effect */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn i {
    margin-left: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
}

.btn-primary:hover i {
    transform: translateX(-5px);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.3);
}

.btn-secondary:hover i {
    transform: translateX(-5px);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--success);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification i {
    margin-left: 10px;
    font-size: 1.2rem;
}

.sidebar .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    gap: 0.5rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar .logo img {
    height: 200px;
    width: auto;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar .logo:hover img {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}