/* Background Decorations */
.background-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: float 8s ease-in-out infinite;
}

.glow-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #7c3aed, transparent);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.glow-orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #a78bfa, transparent);
    bottom: -100px;
    right: -100px;
    animation-delay: 2s;
}

.glow-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #8b5cf6, transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Dashboard Layout - Reset body for dashboard pages */
body.dashboard-page,
body:has(.dashboard-container) {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    background: #0a0a0a !important;
    background-image: none !important;
}

.dashboard-container {
    display: block !important;
    min-height: 100vh;
    background: #0a0a0a;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    padding: 0 !important;
    margin: 0 !important;
}

/* Sidebar */
.sidebar {
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    background: rgba(20, 20, 25, 0.98) !important;
    backdrop-filter: blur(30px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(180%) !important;
    border: 1px solid rgba(124, 58, 237, 0.4) !important;
    border-radius: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 20px !important;
    left: 20px !important;
    bottom: 20px !important;
    height: auto !important;
    max-height: calc(100vh - 40px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 100 !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8),
                0 0 0 1px rgba(255, 255, 255, 0.08) inset,
                0 4px 20px rgba(124, 58, 237, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    animation: slideInLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin: 0 !important;
    padding: 0 !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(40, 40, 50, 0.8) rgba(20, 20, 25, 0.3);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(124, 58, 237, 0.25);
    background: transparent;
    border-radius: 20px 20px 0 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    object-fit: contain;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.5));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 15px rgba(167, 139, 250, 0.8));
    }
}

.sidebar-header h2 {
    font-size: 20px;
    margin: 0 0 15px 0;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(40, 26, 59, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(124, 58, 237, 0.4);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.3);
}

.user-avatar:hover {
    border-color: rgba(167, 139, 250, 0.6);
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.5);
    transform: scale(1.05);
}

.user-info > div {
    flex: 1;
}

.user-info strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
    color: #e0e0e0;
}

.user-info small {
    color: #a0a0a0;
    font-size: 11px;
}

.sidebar-nav {
    flex: 1;
    padding: 15px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #a0a0a0;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    margin: 4px 12px;
    border-radius: 10px;
    font-size: 14px;
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.1), transparent);
    transition: width 0.3s ease;
    border-radius: 8px;
}

.nav-item:hover {
    background: rgba(124, 58, 237, 0.15);
    color: #a78bfa;
    transform: translateX(3px);
    border-left-color: rgba(124, 58, 237, 0.5);
}

.nav-item:hover::before {
    width: 100%;
}

.nav-item.active {
    background: rgba(124, 58, 237, 0.2);
    color: #a78bfa;
    border-left-color: #7c3aed;
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.3);
}

.nav-item.active::before {
    width: 100%;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.2), transparent);
}

.nav-item.logout {
    color: #ff6b6b;
    margin-top: auto;
}

.nav-item.logout:hover {
    background: rgba(255, 107, 107, 0.1);
    border-left-color: #ff6b6b;
    color: #ff6b6b;
}

.nav-item .icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
    z-index: 1;
    position: relative;
}

.nav-item span:last-child {
    z-index: 1;
    position: relative;
    font-weight: 500;
}

/* Navigation Sections */
.nav-section {
    margin: 15px 0;
    padding: 10px 0;
    border-top: 1px solid rgba(124, 58, 237, 0.1);
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}

.nav-section:first-child {
    border-top: none;
}

.nav-section-title {
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(167, 139, 250, 0.6);
    margin-bottom: 8px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 320px;
    padding: 30px;
    background: transparent;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    width: calc(100% - 320px);
    max-width: calc(100vw - 320px);
    overflow-x: hidden;
    box-sizing: border-box;
}

.content-header {
    margin-bottom: 30px;
}

.content-header h1 {
    font-size: 28px;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.content-header p {
    color: #a0a0a0;
    font-size: 14px;
    font-weight: 400;
}

/* Status Carousel */
.status-carousel {
    width: 100%;
    overflow: hidden;
    background: rgba(20, 20, 20, 0.5);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 10px;
    padding: 10px 0;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    max-width: 100%;
}

.status-carousel-track {
    display: flex;
    animation: scrollStatus 25s linear infinite;
    gap: 30px;
    width: fit-content;
}

.status-slide {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    color: #e0e0e0;
    font-size: 12px;
    font-weight: 500;
    padding: 0 15px;
    flex-shrink: 0;
}

.status-icon {
    font-size: 14px;
    filter: drop-shadow(0 0 4px rgba(124, 58, 237, 0.4));
    flex-shrink: 0;
}

.status-text {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
}

@keyframes scrollStatus {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.status-carousel:hover .status-carousel-track {
    animation-play-state: paused;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Cards */
.card {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.3);
    transform: translateY(-2px);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(88, 101, 242, 0.05));
    backdrop-filter: blur(10px);
}

.card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.2px;
}

.card-body {
    padding: 20px;
}

.card-body p {
    font-size: 14px;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 12px;
    font-weight: 400;
}

.card-body p:last-child {
    margin-bottom: 0;
}

.card-body strong {
    font-weight: 700;
    color: #ffffff;
}

/* Status Items */
.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(124, 58, 237, 0.15);
}

.status-item:last-child {
    border-bottom: none;
}

.status-item .label {
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
}

.status-item .value {
    font-weight: 400;
    font-size: 14px;
    color: #ffffff;
    text-align: right;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 400;
    background: rgba(40, 26, 59, 0.6);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(124, 58, 237, 0.3);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}

.badge-owner {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 193, 7, 0.1));
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

.badge-reseller {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(88, 101, 242, 0.1));
    color: #a78bfa;
    border: 1px solid rgba(124, 58, 237, 0.4);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}

.badge-free {
    background: linear-gradient(135deg, rgba(87, 242, 135, 0.2), rgba(74, 224, 119, 0.1));
    color: #57F287;
    border: 1px solid rgba(87, 242, 135, 0.4);
    box-shadow: 0 2px 8px rgba(87, 242, 135, 0.2);
}

.badge-user {
    background: rgba(40, 26, 59, 0.6);
    color: #ffffff;
    border: 1px solid rgba(124, 58, 237, 0.3);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}

.badge-verified {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.2), rgba(88, 101, 242, 0.1));
    color: #5865F2;
    border: 1px solid rgba(88, 101, 242, 0.4);
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.2);
}

.badge-small {
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 12px;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    min-height: 100px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.2), transparent);
    transition: left 0.5s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    background: rgba(124, 58, 237, 0.15);
    border-color: rgba(167, 139, 250, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.action-btn .icon {
    font-size: 32px;
    z-index: 1;
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.action-btn span:last-child {
    font-size: 14px;
    font-weight: 600;
    z-index: 1;
    position: relative;
    color: #e0e0e0;
    text-align: center;
}

/* Discord Link */
.discord-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #5865F2, #4752C4);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.3);
}

.discord-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.5);
    background: linear-gradient(135deg, #4752C4, #3a45b3);
}

.discord-link svg {
    flex-shrink: 0;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    position: relative;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(88, 101, 242, 0.05));
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: none;
    border: none;
    color: #a0a0a0;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(237, 66, 69, 0.1);
    color: #ff6b6b;
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.modal-success-icon {
    text-align: center;
    font-size: 64px;
    margin-bottom: 20px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.modal-message {
    text-align: center;
    color: #e0e0e0;
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.modal-data {
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.modal-data-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}

.modal-data-item:last-child {
    border-bottom: none;
}

.modal-data-label {
    color: #a0a0a0;
    font-size: 14px;
    font-weight: 500;
}

.modal-data-value {
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    text-align: right;
    max-width: 60%;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #5865F2, #4752C4);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
}

.btn-copy:active {
    transform: translateY(0);
}

.btn-copy.copied {
    background: linear-gradient(135deg, #57F287, #4ae077);
    box-shadow: 0 4px 15px rgba(87, 242, 135, 0.3);
}

.btn-close-modal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: #a78bfa;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-modal:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.5);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(124, 58, 237, 0.2);
    overflow-x: auto;
}

.tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: #a0a0a0;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-weight: 500;
}

.tab:hover {
    color: #e0e0e0;
}

.tab.active {
    color: #a78bfa;
    border-bottom-color: #7c3aed;
}

.tab .icon {
    font-size: 16px;
}

/* Content Area */
.content-area {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    padding: 25px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #a0a0a0;
    font-size: 14px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 10px;
    color: #e0e0e0;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
    background: rgba(10, 10, 10, 0.7);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #5865F2, #4752C4);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.btn-secondary {
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: #a78bfa;
}

.btn-secondary:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.5);
}

.btn-success {
    background: linear-gradient(135deg, #57F287, #4ae077);
    color: #000;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(87, 242, 135, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ED4245, #d32f2f);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(237, 66, 69, 0.4);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}

table th {
    background: rgba(124, 58, 237, 0.1);
    color: #a78bfa;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table td {
    color: #e0e0e0;
    font-size: 14px;
}

table tr:hover {
    background: rgba(124, 58, 237, 0.05);
}

table tr:last-child td {
    border-bottom: none;
}

/* Info Items */
.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item .label {
    color: #a0a0a0;
    font-size: 14px;
}

.info-item .value {
    font-weight: 600;
    font-size: 14px;
    text-align: right;
    color: #e0e0e0;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
    border: 1px solid;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-success {
    background: rgba(87, 242, 135, 0.1);
    border-color: rgba(87, 242, 135, 0.3);
    color: #57F287;
}

.alert-error {
    background: rgba(237, 66, 69, 0.1);
    border-color: rgba(237, 66, 69, 0.3);
    color: #ff6b6b;
}

.alert-info {
    background: rgba(88, 101, 242, 0.1);
    border-color: rgba(88, 101, 242, 0.3);
    color: #8b9aff;
}

/* Scrollbar */
.sidebar::-webkit-scrollbar,
.modal::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track,
.modal::-webkit-scrollbar-track {
    background: rgba(20, 20, 25, 0.3);
    margin: 10px 0;
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb,
.modal::-webkit-scrollbar-thumb {
    background: rgba(40, 40, 50, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.sidebar::-webkit-scrollbar-thumb:hover,
.modal::-webkit-scrollbar-thumb:hover {
    background: rgba(60, 60, 70, 0.9);
    border-color: rgba(124, 58, 237, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: #a78bfa;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 24px;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 10001;
    transition: all 0.3s ease;
    flex-shrink: 0;
    min-width: 44px;
    max-width: 44px;
}

.mobile-menu-toggle:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.5);
    color: #c4b5fd;
}

.mobile-menu-toggle:active {
    background: rgba(124, 58, 237, 0.3);
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* Responsive */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: 260px;
        top: 15px;
        left: 15px;
        bottom: 15px;
        height: calc(100vh - 30px);
        border-radius: 18px;
    }
    
    .main-content {
        margin-left: 290px;
        padding: 25px;
        width: calc(100% - 290px);
        max-width: calc(100vw - 290px);
    }
    
    .content-header h1 {
        font-size: 24px;
    }
    
    .card-header h3 {
        font-size: 15px;
    }
    
    .status-carousel-track {
        gap: 25px;
    }
    
    .status-slide {
        padding: 0 12px;
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block !important;
        z-index: 10001;
    }
    
    .dashboard-container {
        position: relative;
    }
    
    /* Ocultar sidebar desktop no mobile por padrão */
    .sidebar:not(.mobile-menu-active) {
        display: none !important;
    }
    
    /* Menu mobile - aparecer quando ativo - DEVE FICAR NA FRENTE DO OVERLAY */
    .sidebar.mobile-menu-active {
        display: flex !important;
        position: fixed !important;
        top: 15px !important;
        left: 15px !important;
        right: 15px !important;
        bottom: 15px !important;
        width: calc(100% - 30px) !important;
        max-width: calc(100% - 30px) !important;
        height: calc(100vh - 30px) !important;
        background: rgba(20, 20, 25, 0.98) !important;
        background-color: rgba(20, 20, 25, 0.98) !important;
        backdrop-filter: blur(30px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(30px) saturate(180%) !important;
        flex-direction: column !important;
        gap: 8px !important;
        padding: 0 !important;
        border: 1px solid rgba(124, 58, 237, 0.3) !important;
        border-radius: 20px !important;
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 10000000 !important;
        pointer-events: auto !important;
        max-height: calc(100vh - 30px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8),
                    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
                    0 2px 10px rgba(124, 58, 237, 0.3) !important;
        margin: 0 !important;
        isolation: isolate !important;
        animation: slideDownMenu 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    /* Remover camada sólida para manter efeito flutuante */
    .sidebar.mobile-menu-active::before {
        display: none !important;
    }
    
    @keyframes slideDownMenu {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .sidebar-header {
        padding: 24px 20px !important;
        position: relative !important;
        background: transparent !important;
        background-color: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        -moz-backdrop-filter: none !important;
        border-bottom: 1px solid rgba(124, 58, 237, 0.25) !important;
        border-radius: 20px 20px 0 0 !important;
        margin: 0 !important;
        opacity: 1 !important;
    }
    
    /* Garantir que sidebar mobile seja completamente opaco */
    .sidebar.mobile-menu-active {
        opacity: 1 !important;
        background: rgba(20, 20, 25, 0.98) !important;
        background-color: rgba(20, 20, 25, 0.98) !important;
    }
    
    .sidebar.mobile-menu-active .sidebar-header {
        background: transparent !important;
        background-color: transparent !important;
        opacity: 1 !important;
    }
    
    .sidebar.mobile-menu-active .sidebar-nav {
        opacity: 1 !important;
    }
    
    .sidebar.mobile-menu-active .nav-item {
        opacity: 1 !important;
    }
    
    .sidebar-header h2 {
        font-size: 18px;
        opacity: 1 !important;
    }
    
    .logo-container {
        margin-bottom: 15px;
    }
    
    .sidebar-logo {
        width: 35px;
        height: 35px;
    }
    
    .sidebar-nav {
        padding: 25px 20px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    /* Estilizar nav-items como no home.php */
    .sidebar-nav .nav-item {
        font-size: 1.05em;
        font-weight: 500;
        padding: 18px 24px !important;
        width: 100%;
        text-align: left;
        border: none;
        border-radius: 12px;
        display: flex !important;
        align-items: center;
        gap: 12px;
        white-space: normal;
        color: #e0e0e0 !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        background: #14101e !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        position: relative;
        overflow: hidden;
        margin-bottom: 4px;
        text-decoration: none;
        border: 1px solid rgba(124, 58, 237, 0.2) !important;
    }
    
    .sidebar-nav .nav-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.1), transparent);
        transition: left 0.5s ease;
    }
    
    .sidebar-nav .nav-item:hover::before {
        left: 100%;
    }
    
    .sidebar-nav .nav-item:hover {
        background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(88, 101, 242, 0.15) 100%) !important;
        color: #c4b5fd !important;
        transform: translateX(5px);
        border-color: rgba(124, 58, 237, 0.3) !important;
        box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2),
                    inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    .sidebar-nav .nav-item:active {
        transform: translateX(3px) scale(0.98);
    }
    
    .sidebar-nav .nav-item.active {
        background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(88, 101, 242, 0.2) 100%) !important;
        color: #c4b5fd !important;
        border-color: rgba(124, 58, 237, 0.4) !important;
    }
    
    .sidebar-nav .nav-item.logout {
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.15) 100%) !important;
        border-color: rgba(239, 68, 68, 0.3) !important;
    }
    
    .sidebar-nav .nav-item.logout:hover {
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(220, 38, 38, 0.25) 100%) !important;
        border-color: rgba(239, 68, 68, 0.5) !important;
    }
    
    .sidebar-overlay {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0, 0, 0, 0.7) !important;
        backdrop-filter: blur(5px) !important;
        z-index: 9999998 !important;
        opacity: 0;
        transition: opacity 0.3s ease !important;
        margin: 0 !important;
        padding: 0 !important;
        pointer-events: auto !important;
    }
    
    .sidebar-overlay.active {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .main-content {
        margin-left: 0;
        padding: 15px;
        padding-top: 70px;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .status-carousel {
        margin-bottom: 15px;
        padding: 10px 0;
        border-radius: 8px;
    }
    
    .status-carousel-track {
        gap: 35px;
    }
    
    .status-slide {
        font-size: 12px;
        padding: 0 18px;
        gap: 8px;
    }
    
    .status-icon {
        font-size: 14px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .content-header {
        margin-bottom: 20px;
    }
    
    .content-header h1 {
        font-size: 22px;
        margin-bottom: 5px;
    }
    
    .content-header p {
        font-size: 13px;
    }
    
    .card {
        border-radius: 12px;
    }
    
    .card-header {
        padding: 15px;
    }
    
    .card-header h3 {
        font-size: 14px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .status-item {
        padding: 10px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .status-item .label {
        font-size: 13px;
    }
    
    .status-item .value {
        font-size: 13px;
        text-align: left;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .action-btn {
        min-height: 80px;
        padding: 15px;
    }
    
    .action-btn .icon {
        font-size: 28px;
    }
    
    .action-btn span:last-child {
        font-size: 13px;
    }
    
    .user-info {
        padding: 10px;
    }
    
    .user-info strong {
        font-size: 13px;
    }
    
    .user-info small {
        font-size: 10px;
    }
    
    .nav-item {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(124, 58, 237, 0.3) transparent;
    }
    
    .tabs::-webkit-scrollbar {
        height: 4px;
    }
    
    .tabs::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .tabs::-webkit-scrollbar-thumb {
        background: rgba(124, 58, 237, 0.3);
        border-radius: 2px;
    }
    
    .tab {
        padding: 10px 15px;
        font-size: 13px;
        white-space: nowrap;
        min-width: fit-content;
    }
    
    .content-area {
        padding: 15px;
        margin-top: 15px;
        background: rgba(20, 20, 20, 0.6);
        backdrop-filter: blur(10px);
        border-radius: 12px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 14px;
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .create-tabs {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .create-tab {
        padding: 10px 16px;
        font-size: 13px;
        flex: 1;
        min-width: calc(50% - 4px);
    }
    
    .create-section {
        margin-top: 15px;
    }
    
    .list-tabs {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .list-tab {
        padding: 10px 16px;
        font-size: 13px;
        flex: 1;
        min-width: calc(50% - 4px);
    }
    
    .list-section {
        margin-top: 15px;
    }
    
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        font-size: 12px;
    }
    
    table th,
    table td {
        padding: 10px 8px;
    }
    
    .modal {
        width: 95%;
        max-width: 95%;
        margin: 10px;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .badge {
        padding: 4px 10px;
        font-size: 12px;
    }
    
    .badge-small {
        padding: 2px 6px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 10px;
        padding-top: 60px;
    }
    
    .content-header h1 {
        font-size: 20px;
    }
    
    .card-header {
        padding: 12px;
    }
    
    .card-body {
        padding: 12px;
    }
    
    .action-btn {
        min-height: 70px;
        padding: 12px;
    }
    
    .action-btn .icon {
        font-size: 24px;
    }
    
    .quick-actions {
        gap: 8px;
    }
    
    .mobile-menu-toggle {
        top: 10px;
        left: 10px;
        padding: 8px 12px;
        font-size: 20px;
    }
    
    .sidebar {
        width: 90%;
        max-width: 300px;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
        padding: 8px;
    }
    
    .user-info > div {
        width: 100%;
        text-align: center;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
    }
    
    .status-carousel {
        padding: 10px 0;
    }
    
    .status-slide {
        font-size: 11px;
        padding: 0 12px;
        gap: 8px;
    }
    
    .status-icon {
        font-size: 14px;
    }
    
    .status-item .value {
        word-break: break-word;
    }
    
    .badge {
        font-size: 11px;
        padding: 3px 8px;
    }
}
