:root {
    --sidebar-width: 260px;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-color: #00d2ff;
    --dark-bg: #0f172a;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.95);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f1f5f9;
    color: #334155;
    overflow-x: hidden;
}

#wrapper {
    display: flex;
    width: 100%;
}

/* Sidebar Styling */
#sidebar-wrapper {
    min-height: 100vh;
    width: var(--sidebar-width);
    background: var(--dark-bg) !important;
    transition: all 0.3s ease;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

#sidebar-wrapper .sidebar-heading {
    padding: 2rem 1.5rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#sidebar-wrapper .list-group-item {
    border: none;
    padding: 0.8rem 1.5rem;
    margin: 0.2rem 0.8rem;
    border-radius: 8px;
    color: #94a3b8;
    background: transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

#sidebar-wrapper .list-group-item i {
    font-size: 1.2rem;
    width: 25px;
}

#sidebar-wrapper .list-group-item:hover,
#sidebar-wrapper .list-group-item.active {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#sidebar-wrapper .list-group-item.active {
    background: var(--primary-gradient) !important;
}

/* Content Area */
#page-content-wrapper {
    flex: 1;
    min-width: 0;
}

.navbar {
    background: #fff !important;
    padding: 1rem 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Card Design Overhaul */
.card {
    border: none;
    border-radius: 16px;
    background: var(--glass-bg);
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.icon-hash {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #4338ca;
}

.icon-qr {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #047857;
}

.icon-history {
    background: linear-gradient(135deg, #ffedd5, #fed7aa);
    color: #c2410c;
}

.icon-whatsapp {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #15803d;
}

/* Buttons & Elements */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    opacity: 0.9;
}

.font-monospace {
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

#main-content {
    animation: fadeInScale 0.4s ease-out;
}

@media (max-width: 768px) {
    #sidebar-wrapper {
        margin-left: calc(-1 * var(--sidebar-width));
    }

    #wrapper.toggled #sidebar-wrapper {
        margin-left: 0;
    }
}