/* MegaWifi - Sistema de Controle de IP - Dark Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

:root {
    /* Light Theme */
    --primary-red: #DC2626;
    --primary-red-dark: #B91C1C;
    --primary-red-light: #FEE2E2;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --green: #10B981;
    --yellow: #F59E0B;
    --blue: #3B82F6;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    /* Dark Theme */
    --white: #1F2937;
    --gray-50: #111827;
    --gray-100: #1F2937;
    --gray-200: #374151;
    --gray-300: #4B5563;
    --gray-400: #6B7280;
    --gray-500: #9CA3AF;
    --gray-600: #D1D5DB;
    --gray-700: #E5E7EB;
    --gray-800: #F3F4F6;
    --gray-900: #F9FAFB;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    transition: var(--transition);
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1002;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    padding: 8px 16px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   MODERN LOGIN PAGE
   ======================================== */

/* Base Login Page */
.login-page {
    min-height: 100vh;
    background: var(--gray-50);
    position: relative;
    overflow: hidden;
}

/* Theme Toggle for Login */
.theme-toggle-login {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: var(--gray-700);
}

.theme-toggle-login:hover {
    transform: translateY(-2px) rotate(15deg);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-red);
}

.theme-icon {
    transition: var(--transition);
}

[data-theme="dark"] .theme-toggle-login .theme-icon {
    transform: rotate(180deg);
}

/* Main Wrapper */
.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    position: relative;
}

/* Background Decorations */
.login-bg-decorations {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    animation: float 20s ease-in-out infinite;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-red);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.circle-2 {
    width: 600px;
    height: 600px;
    background: var(--primary-red);
    bottom: -300px;
    right: -200px;
    animation-delay: 3s;
}

.circle-3 {
    width: 300px;
    height: 300px;
    background: var(--primary-red);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 6s;
}

.decoration-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--gray-200) 1px, transparent 1px),
        linear-gradient(90deg, var(--gray-200) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

@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); }
}

/* Left Side - Brand Section */
.login-brand-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .login-brand-section {
    background: linear-gradient(135deg, #B91C1C 0%, #991B1B 100%);
}

.brand-content {
    max-width: 500px;
    color: white;
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.brand-logo-wrapper {
    margin-bottom: 32px;
    text-align: center;
}

.brand-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: white;
    padding: 16px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    display: inline-block;
}

.brand-logo:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.brand-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.brand-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 48px;
    opacity: 0.95;
    text-align: center;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.feature-icon {
    background: white;
    color: var(--primary-red);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feature-text strong {
    font-size: 1.05rem;
    font-weight: 700;
}

.feature-text span {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Right Side - Form Section */
.login-form-section {
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    z-index: 1;
}

.login-card-modern {
    width: 100%;
    max-width: 460px;
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.login-header-modern {
    margin-bottom: 32px;
}

.restricted-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-red-light);
    color: var(--primary-red);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.restricted-badge svg {
    width: 16px;
    height: 16px;
}

.login-header-modern h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.login-header-modern p {
    font-size: 1.05rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Alert Error Modern */
.alert-error-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #FEE2E2;
    border: 2px solid #FCA5A5;
    color: #991B1B;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 600;
    font-size: 0.95rem;
    animation: shake 0.5s ease-in-out;
}

[data-theme="dark"] .alert-error-modern {
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.4);
    color: #FCA5A5;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.alert-error-modern svg {
    flex-shrink: 0;
}

/* Form Modern */
.login-form-modern {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group-modern {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group-modern label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-700);
}

.form-group-modern label svg {
    width: 18px;
    height: 18px;
    color: var(--gray-500);
}

.input-modern {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-900);
    background: var(--white);
    transition: var(--transition);
    font-family: inherit;
}

.input-modern:hover {
    border-color: var(--gray-300);
}

.input-modern:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
    transform: translateY(-2px);
}

.input-modern::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

/* Button Modern */
.btn-login-modern {
    width: 100%;
    padding: 18px 28px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    margin-top: 8px;
}

.btn-login-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

.btn-login-modern:active {
    transform: translateY(0);
}

.btn-login-modern svg {
    transition: transform 0.3s ease;
}

.btn-login-modern:hover svg {
    transform: translateX(4px);
}

/* Footer Modern */
.login-footer-modern {
    margin-top: 40px;
}

.footer-divider {
    height: 1px;
    background: var(--gray-200);
    margin-bottom: 24px;
}

.footer-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
}

.footer-text a {
    color: var(--primary-red);
    text-decoration: none;
    transition: var(--transition);
}

.footer-text a:hover {
    color: var(--primary-red-dark);
    text-decoration: underline;
}

.footer-separator {
    margin: 0 8px;
    color: var(--gray-400);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .login-wrapper {
        grid-template-columns: 1fr;
    }

    .login-brand-section {
        display: none;
    }

    .login-form-section {
        padding: 40px 24px;
    }
}

@media (max-width: 640px) {
    .theme-toggle-login {
        width: 44px;
        height: 44px;
        top: 16px;
        right: 16px;
    }

    .login-card-modern {
        max-width: 100%;
    }

    .login-header-modern h2 {
        font-size: 1.75rem;
    }

    .login-form-section {
        padding: 32px 20px;
    }

    .input-modern,
    .btn-login-modern {
        padding: 14px 18px;
        font-size: 0.95rem;
    }
}

/* App Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

/* Mobile: Hide sidebar by default */
@media (max-width: 768px) {
    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 280px !important;
        height: 100vh !important;
        z-index: 1000 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 4px 0 20px rgba(0,0,0,0.15) !important;
        will-change: transform;
    }

    .sidebar.open {
        transform: translateX(0) !important;
    }

    .mobile-header {
        display: flex !important;
    }

    .sidebar-overlay {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0,0,0,0.6) !important;
        z-index: 999 !important;
        backdrop-filter: blur(2px) !important;
    }

    .sidebar-overlay.active {
        display: block !important;
    }
}

.sidebar-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: var(--white);
    padding: 30px 25px;
    text-align: center;
}

.sidebar-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 16px;
    display: block;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-logo:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .sidebar-logo {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .sidebar-logo:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

@media (max-width: 1200px) {
    .sidebar-logo {
        width: 75px;
        height: 75px;
    }
}

.sidebar-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.025em;
}

.sidebar-header p {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

.sidebar-menu {
    list-style: none;
    padding: 25px 0;
    flex: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 16px 25px;
    color: var(--gray-700);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    border-left: 4px solid transparent;
}

.menu-item:hover {
    background-color: var(--gray-50);
    color: var(--primary-red);
    border-left-color: var(--primary-red);
    transform: translateX(4px);
}

.menu-item.active {
    background-color: var(--primary-red-light);
    color: var(--primary-red);
    font-weight: 600;
    border-left-color: var(--primary-red);
}

.menu-icon {
    margin-right: 12px;
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.sidebar-footer {
    border-top: 1px solid var(--gray-200);
    padding: 25px;
}

.user-info p {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--gray-800);
}

.user-info small {
    color: var(--gray-500);
    display: block;
    margin-bottom: 15px;
    font-size: 0.875rem;
}

.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--gray-50);
    position: relative;
}

/* Mobile Header - Hidden on Desktop */
.mobile-header {
    display: none;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1001;
}

.mobile-menu-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: var(--transition);
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.mobile-menu-btn:hover {
    background: var(--gray-100);
}

.mobile-header-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--white);
    padding: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.mobile-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .mobile-logo {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .mobile-logo:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.mobile-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--gray-800);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
    transform: translateY(-1px);
}

.readonly-input {
    background-color: var(--gray-50) !important;
    color: var(--gray-600) !important;
    cursor: not-allowed;
}

.form-group small {
    color: var(--gray-500);
    font-size: 0.8rem;
    margin-top: 6px;
    display: block;
}

.input-group {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.input-group input {
    flex: 1;
    margin-bottom: 0;
}

.input-group .btn {
    white-space: nowrap;
    flex-shrink: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-actions {
    margin-top: 32px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Professional Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(220, 38, 38, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--gray-600) 0%, var(--gray-700) 100%);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(75, 85, 99, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(75, 85, 99, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(239, 68, 68, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--green) 0%, #059669 100%);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(16, 185, 129, 0.4);
}

.btn-sm {
    padding: 10px 16px;
    font-size: 0.8rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Dashboard */
.dashboard-header {
    margin-bottom: 40px;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
    letter-spacing: -0.025em;
}

.dashboard-header p {
    color: var(--gray-600);
    font-size: 1.125rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: bold;
}

.stat-icon.total {
    background: linear-gradient(135deg, var(--blue) 0%, #2563EB 100%);
    color: var(--white);
}

.stat-icon.available {
    background: linear-gradient(135deg, var(--green) 0%, #059669 100%);
    color: var(--white);
}

.stat-icon.reserved {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: var(--white);
}

.stat-icon.percentage {
    background: linear-gradient(135deg, var(--yellow) 0%, #D97706 100%);
    color: var(--white);
}

.stat-icon.offline {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: var(--white);
}

.stat-icon.cancelled {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: var(--white);
}

.stat-icon.suspended {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: var(--white);
}

.stat-content h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
    letter-spacing: -0.025em;
}

.stat-content p {
    color: var(--gray-600);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.chart-container {
    position: relative;
    height: 400px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 32px;
    border: 1px solid var(--gray-200);
}

.chart-container h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 24px;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray-200);
    flex-wrap: wrap;
    gap: 16px;
}

.page-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.025em;
    flex: 1 1 auto;
    min-width: 200px;
}

.page-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Search Bar */
.search-bar {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--gray-200);
}

.search-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.search-form input {
    flex: 1;
    margin-bottom: 0;
    min-width: 200px;
}

.search-form .btn {
    flex-shrink: 0;
}

.search-results {
    margin-top: 16px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: 8px;
    color: var(--gray-700);
    font-size: 0.875rem;
    border-left: 4px solid var(--primary-red);
}

.search-results strong {
    color: var(--primary-red);
}
/* Tables */
.table-container {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.data-table th {
    background: var(--gray-50);
    padding: 20px;
    text-align: left;
    font-weight: 700;
    color: var(--gray-700);
    border-bottom: 2px solid var(--gray-200);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table td {
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-800);
}

.data-table tr:hover {
    background-color: var(--gray-50);
}

.data-table .btn-sm {
    white-space: nowrap;
    padding: 8px 12px;
    min-width: auto;
}

.data-table td {
    vertical-align: middle;
}

.data-table td:last-child {
    white-space: nowrap;
}

.ip-address {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-weight: 700;
    color: var(--gray-900);
    background: var(--gray-100);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
}

.no-data {
    text-align: center;
    color: var(--gray-500);
    font-style: italic;
    padding: 60px !important;
    font-size: 1.125rem;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-available {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    color: #065F46;
}

.status-reserved {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: #991B1B;
}

.status-active {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    color: #065F46;
}

.status-inactive {
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
    color: #6B7280;
}

.role-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.role-admin {
    background: linear-gradient(135deg, var(--primary-red-light) 0%, #FECACA 100%);
    color: var(--primary-red-dark);
}

.role-membro {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    color: #1E40AF;
}

.user-badge {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.user-deleted {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: #991B1B;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    font-style: italic;
}

.user-deleted {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: #991B1B;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    font-style: italic;
}

.action-badge {

/* Alerts */
.alert {
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    font-weight: 600;
    border-left: 4px solid;
}

.alert-success {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    color: #065F46;
    border-left-color: var(--green);
}

.alert-error {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: #991B1B;
    border-left-color: #EF4444;
}

.alert-info {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    color: #1E40AF;
    border-left-color: #3B82F6;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
    padding: 24px;
}

.page-info {
    color: var(--gray-600);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    overflow-y: auto;
}

.modal.show,
.modal[style*="display: block"] {
    display: block;
}

.modal-content {
    background-color: var(--white);
    margin: 15% auto;
    padding: 40px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

@media (max-height: 700px) {
    .modal-content {
        margin: 5% auto;
        max-height: 90vh;
    }
}

.modal-content h2 {
    color: var(--gray-900);
    margin-bottom: 16px;
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-content p {
    color: var(--gray-600);
    margin-bottom: 32px;
    font-size: 1rem;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* ========================================
   MODERN MODAL STYLES
   ======================================== */

.modal-overlay-modern {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0 !important;
    visibility: hidden;
}

.modal-overlay-modern.modal-show {
    display: flex !important;
    visibility: visible !important;
}

.modal-backdrop-modern {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(8px);
    z-index: 1 !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-box-modern {
    position: relative !important;
    background: linear-gradient(145deg, #FFFFFF 0%, #F9FAFB 100%);
    border-radius: 28px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.05),
        0 30px 60px -12px rgba(0, 0, 0, 0.35),
        0 50px 100px -20px rgba(0, 0, 0, 0.25);
    max-width: 560px;
    width: 100%;
    overflow: hidden;
    z-index: 2 !important;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .modal-box-modern {
    background: linear-gradient(145deg, #1F2937 0%, #111827 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-show .modal-box-modern {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-icon-danger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    margin: 48px auto 0;
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 50%, #B91C1C 100%);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow:
        0 0 0 0 rgba(239, 68, 68, 0.4),
        0 20px 40px -10px rgba(239, 68, 68, 0.5),
        inset 0 -2px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-icon-danger::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: ripple 2s ease-in-out infinite;
}

@keyframes ripple {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

[data-theme="dark"] .modal-icon-danger {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 50%, #991B1B 100%);
}

.modal-icon-danger svg {
    color: #FFFFFF;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    z-index: 1;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 0 0 0 rgba(239, 68, 68, 0.6),
            0 20px 40px -10px rgba(239, 68, 68, 0.5),
            inset 0 -2px 20px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.08);
        box-shadow:
            0 0 0 25px rgba(239, 68, 68, 0),
            0 25px 50px -10px rgba(239, 68, 68, 0.6),
            inset 0 -2px 20px rgba(0, 0, 0, 0.2);
    }
}

.modal-header-modern {
    padding: 32px 40px 0;
    text-align: center;
}

.modal-header-modern h2 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 50%, #F87171 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .modal-header-modern h2 {
    background: linear-gradient(135deg, #FCA5A5 0%, #EF4444 50%, #DC2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-subtitle {
    font-size: 1.05rem;
    color: var(--gray-600);
    font-weight: 600;
    opacity: 0.9;
}

.modal-body-modern {
    padding: 32px 40px;
}

.warning-box-modern {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    border: 2px solid #FECACA;
    border-left: 5px solid #EF4444;
    padding: 18px 22px;
    border-radius: 16px;
    margin-bottom: 26px;
    animation: slideDown 0.4s ease-out;
    box-shadow:
        0 4px 12px rgba(239, 68, 68, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .warning-box-modern {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
    border-color: rgba(239, 68, 68, 0.3);
    border-left-color: #EF4444;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.warning-box-modern svg {
    color: var(--primary-red);
    flex-shrink: 0;
    margin-top: 2px;
}

.warning-box-modern div {
    color: var(--primary-red-dark);
    font-size: 0.95rem;
    line-height: 1.5;
}

[data-theme="dark"] .warning-box-modern div {
    color: #FCA5A5;
}

.warning-box-modern strong {
    font-weight: 700;
}

.modal-text-modern {
    font-size: 1.1rem;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 24px;
    text-align: center;
    font-weight: 500;
}

.modal-text-modern strong {
    font-weight: 800;
    color: #1F2937;
}

.user-highlight-modern {
    display: inline-block;
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: #B91C1C;
    padding: 6px 16px;
    border-radius: 10px;
    font-weight: 800;
    margin: 0 4px;
    border: 2px solid #FCA5A5;
    box-shadow:
        0 2px 8px rgba(239, 68, 68, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    letter-spacing: 0.01em;
}

[data-theme="dark"] .user-highlight-modern {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.25) 0%, rgba(220, 38, 38, 0.15) 100%);
    color: #FCA5A5;
    border-color: rgba(239, 68, 68, 0.4);
}

.info-box-modern {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    border: 2px solid #E5E7EB;
    padding: 16px 20px;
    border-radius: 14px;
    font-size: 0.95rem;
    color: #4B5563;
    line-height: 1.6;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.info-box-modern svg {
    color: var(--gray-500);
    flex-shrink: 0;
    margin-top: 2px;
}

.modal-actions-modern {
    display: flex;
    gap: 12px;
    padding: 0 40px 40px;
    justify-content: center;
}

.btn-modal-cancel,
.btn-modal-danger {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 28px;
    border: none;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-modal-cancel {
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    color: #374151;
    border: 2px solid #E5E7EB;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-modal-cancel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: left 0.5s;
}

.btn-modal-cancel:hover::before {
    left: 100%;
}

.btn-modal-cancel:hover {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border-color: #D1D5DB;
}

.btn-modal-danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 50%, #B91C1C 100%);
    color: white;
    box-shadow:
        0 0 0 1px rgba(220, 38, 38, 0.5),
        0 6px 20px rgba(239, 68, 68, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
}

.btn-modal-danger::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-modal-danger:hover::after {
    opacity: 1;
}

.btn-modal-danger:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 0 0 1px rgba(220, 38, 38, 0.6),
        0 10px 30px rgba(239, 68, 68, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-modal-danger:active,
.btn-modal-cancel:active {
    transform: translateY(0);
}

.btn-modal-cancel svg,
.btn-modal-danger svg {
    transition: transform 0.3s ease;
}

.btn-modal-danger:hover svg {
    animation: shake-icon 0.5s ease;
}

@keyframes shake-icon {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* Responsive */
@media (max-width: 640px) {
    .modal-overlay-modern {
        padding: 16px;
    }

    .modal-box-modern {
        border-radius: 20px;
    }

    .modal-icon-danger {
        width: 80px;
        height: 80px;
        margin: 32px auto 0;
    }

    .modal-icon-danger svg {
        width: 56px;
        height: 56px;
    }

    .modal-header-modern {
        padding: 24px 24px 0;
    }

    .modal-header-modern h2 {
        font-size: 1.5rem;
    }

    .modal-body-modern {
        padding: 24px;
    }

    .modal-actions-modern {
        flex-direction: column;
        padding: 0 24px 32px;
    }

    .btn-modal-cancel,
    .btn-modal-danger {
        width: 100%;
        padding: 14px 20px;
        font-size: 0.95rem;
    }
}

/* Reservation Page */
.reservation-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.ip-info-card,
.reservation-form-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.ip-info-card:hover,
.reservation-form-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray-100);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.ip-display {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-red);
    text-align: center;
    padding: 32px 24px;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    border-radius: 16px;
    margin: 24px 0;
    border: 3px solid var(--primary-red);
    position: relative;
    overflow: hidden;
}

.ip-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.ip-status-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    color: #065F46;
    border-radius: 12px;
    font-weight: 600;
    margin-bottom: 24px;
    border-left: 4px solid #10B981;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.available {
    background: #10B981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.3);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.ip-info-details {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.info-label {
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.info-value {
    font-weight: 700;
    color: var(--gray-900);
    font-family: 'JetBrains Mono', monospace;
}

.label-icon {
    margin-right: 8px;
    font-size: 1.1rem;
}

.btn-sgp {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.3);
    border: none;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-sgp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(16, 185, 129, 0.4);
}

.btn-icon {
    font-size: 1.1rem;
    margin-right: 8px;
}

.reservation-form .form-group {
    margin-bottom: 32px;
}

.reservation-form .form-group label {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.reservation-form input,
.reservation-form select,
.reservation-form textarea {
    border-radius: 12px;
    border: 2px solid var(--gray-200);
    padding: 16px 20px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.reservation-form input:focus,
.reservation-form select:focus,
.reservation-form textarea:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
    transform: translateY(-1px);
}

.input-group {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.input-group input {
    flex: 1;
}

.input-group .btn {
    flex-shrink: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    white-space: nowrap;
}

.form-actions {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid var(--gray-100);
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

.form-actions .btn {
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
    justify-content: center;
}

/* Melhorias na seção de informações do IP */
.ip-info-header {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.ip-header-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    flex-shrink: 0;
}

.ip-header-text {
    flex: 1;
}

.ip-header-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 4px 0;
}

.ip-header-subtitle {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.ip-main-display {
    margin: 32px 0;
}

.ip-address-container {
    text-align: center;
    margin-bottom: 24px;
}

.ip-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.ip-address-display {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-red);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    border: 3px solid var(--primary-red);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.1);
    transition: var(--transition);
}

.ip-address-display:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(220, 38, 38, 0.15);
}

.ip-address-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.1), transparent);
    animation: shimmer 3s infinite;
}

.copy-ip-btn {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.copy-ip-btn:hover {
    background: var(--primary-red-dark);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.ip-status-container {
    display: flex;
    justify-content: center;
}

.status-badge-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    color: #065F46;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid #10B981;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
}

.status-dot.available {
    background: #10B981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.3);
    animation: pulse 2s infinite;
}

.status-pulse {
    position: absolute;
    top: 50%;
    left: 24px;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.4);
    animation: ripple 2s infinite;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.info-card {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.info-card:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.info-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.info-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2px;
    font-family: 'JetBrains Mono', monospace;
}

.info-time {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 500;
}

@keyframes ripple {
    0% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-50%) scale(2);
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ip-address-display {
        font-size: 1.8rem;
        padding: 20px;
        flex-direction: column;
        gap: 12px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .info-card {
        padding: 16px;
    }
    
    .ip-header-icon {
        width: 40px;
        height: 40px;
    }
    
    .ip-header-text h2 {
        font-size: 1.25rem;
    }
    
    .reservation-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 16px;
    }
    
    .ip-info-card,
    .reservation-form-card {
        padding: 24px 20px;
        border-radius: 16px;
    }
    
    .card-header {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .card-header h2 {
        font-size: 1.25rem;
    }
    
    .ip-display {
        font-size: 2rem;
        padding: 24px 16px;
    }
    
    .input-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .input-group .btn {
        min-width: auto;
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-actions .btn {
        width: 100%;
        min-width: auto;
    }
}

/* Import Page */
.import-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.import-method {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.import-method:hover {
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.import-method.active {
    border-color: var(--primary-red);
    background: var(--primary-red-light);
}

.import-method h3 {
    color: var(--gray-900);
    margin-bottom: 12px;
    font-size: 1.25rem;
    font-weight: 700;
}

.import-method p {
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.5;
}

.import-container {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 32px;
    border: 1px solid var(--gray-200);
}

.import-section {
    display: none;
}

.import-section.active {
    display: block;
}

.import-result {
    margin-bottom: 32px;
}

.error-details {
    margin-top: 20px;
}

.error-details ul {
    margin-top: 12px;
    padding-left: 24px;
}

.error-details li {
    margin-bottom: 8px;
    color: var(--gray-600);
}

/* Form Container */
.form-container {
    max-width: 900px;
    margin: 0 auto;
}

.form-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 40px;
    border: 1px solid var(--gray-200);
}

.form-card h2 {
    color: var(--gray-900);
    margin-bottom: 32px;
    font-size: 1.75rem;
    font-weight: 700;
}

/* Success Modal Popup */
.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: fadeInOverlay 0.3s ease-out;
}

.success-modal {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--gray-200);
    text-align: center;
    position: relative;
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-animation {
    margin-bottom: 30px;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #10B981;
    stroke-miterlimit: 10;
    margin: 0 auto 20px;
    box-shadow: inset 0px 0px 0px #10B981;
    animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
    position: relative;
}

.success-checkmark .check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: border-box;
    border: 3px solid #10B981;
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
}

.success-checkmark .check-icon::before {
    top: 3px;
    left: -2px;
    width: 30px;
    transform-origin: 100% 50%;
    border-radius: 100px 0 0 100px;
}

.success-checkmark .check-icon::after {
    top: 0;
    left: 30px;
    width: 60px;
    transform-origin: 0 50%;
    border-radius: 0 100px 100px 0;
    animation: rotate-circle 4.25s ease-in;
}

.success-checkmark .check-icon::before,
.success-checkmark .check-icon::after {
    content: '';
    height: 100px;
    position: absolute;
    background: var(--white);
    transform: rotate(-45deg);
}

.success-checkmark .icon-line {
    height: 3px;
    background-color: #10B981;
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.success-checkmark .icon-line.line-tip {
    top: 46px;
    left: 14px;
    width: 25px;
    transform: rotate(45deg);
    animation: icon-line-tip 0.75s;
}

.success-checkmark .icon-line.line-long {
    top: 38px;
    right: 8px;
    width: 47px;
    transform: rotate(-45deg);
    animation: icon-line-long 0.75s;
}

.success-checkmark .icon-circle {
    top: -3px;
    left: -3px;
    z-index: 10;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    box-sizing: content-box;
    border: 3px solid #10B981;
}

.success-checkmark .icon-fix {
    top: 8px;
    width: 5px;
    left: 26px;
    z-index: 1;
    height: 85px;
    position: absolute;
    transform: rotate(-45deg);
    background-color: var(--white);
}

.success-content {
    text-align: center;
}

.success-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin: 0 0 16px 0;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.success-message {
    font-size: 1.125rem;
    color: var(--gray-700);
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.success-details {
    background: var(--gray-50);
    border-radius: 16px;
    padding: 24px;
    margin: 0 0 30px 0;
    border: 1px solid var(--gray-200);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--gray-700);
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.success-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-success-primary {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    min-width: 140px;
}

.btn-success-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-success-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-success-secondary:hover {
    background: var(--gray-200);
    border-color: var(--gray-300);
    transform: translateY(-1px);
}

.fade-out {
    animation: fadeOutOverlay 0.3s ease-out forwards;
}

/* Animations */
@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOutOverlay {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 60px #10B981;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes icon-line-tip {
    0% {
        width: 0;
        left: 1px;
        top: 19px;
    }
    54% {
        width: 0;
        left: 1px;
        top: 19px;
    }
    70% {
        width: 50px;
        left: -8px;
        top: 37px;
    }
    84% {
        width: 17px;
        left: 21px;
        top: 48px;
    }
    100% {
        width: 25px;
        left: 14px;
        top: 45px;
    }
}

@keyframes icon-line-long {
    0% {
        width: 0;
        right: 46px;
        top: 54px;
    }
    65% {
        width: 0;
        right: 46px;
        top: 54px;
    }
    84% {
        width: 55px;
        right: 0px;
        top: 35px;
    }
    100% {
        width: 47px;
        right: 8px;
        top: 38px;
    }
}

@keyframes rotate-circle {
    0% {
        transform: rotate(-45deg);
    }
    5% {
        transform: rotate(-45deg);
    }
    12% {
        transform: rotate(-405deg);
    }
    100% {
        transform: rotate(-405deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .success-modal {
        padding: 30px 20px;
        border-radius: 20px;
        width: 95%;
    }
    
    .success-title {
        font-size: 1.75rem;
    }
    
    .success-message {
        font-size: 1rem;
    }
    
    .success-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-success-primary,
    .btn-success-secondary {
        width: 100%;
        min-width: auto;
    }
    
    .success-details {
        padding: 20px;
    }
    
    .detail-item {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .success-modal {
        padding: 25px 15px;
        width: 98%;
    }
    
    .success-title {
        font-size: 1.5rem;
    }
    
    .success-checkmark,
    .success-checkmark .check-icon {
        width: 60px;
        height: 60px;
    }
    
    .success-details {
        padding: 16px;
    }
}

/* Animações para popup de sucesso */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes popupSlideIn {
    from {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes checkmarkBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes drawCheck {
    0% {
        stroke-dasharray: 0 50;
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dasharray: 50 50;
        stroke-dashoffset: 0;
    }
}

/* Responsividade do popup */
@media (max-width: 768px) {
    .success-popup {
        padding: 32px 24px !important;
        margin: 20px !important;
    }
    
    .success-popup div[style*="display: flex; gap: 16px"] {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .success-popup button,
    .success-popup a {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* Tablet Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .sidebar-logo {
        width: 75px;
        height: 75px;
        margin-bottom: 14px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .dashboard-charts {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .chart-container {
        height: 380px;
        padding: 28px;
    }

    .chart-container h2 {
        font-size: 1.375rem;
        margin-bottom: 20px;
    }

    .reservation-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .page-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .import-methods {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar-logo {
        width: 70px;
        height: 70px;
        margin-bottom: 12px;
    }

    .mobile-logo {
        width: 32px;
        height: 32px;
    }

    .mobile-header-branding {
        gap: 10px;
    }

    /* Melhorar touch targets - mínimo 44x44px */
    .btn,
    .menu-item,
    input,
    select,
    textarea,
    button {
        min-height: 44px;
    }

    .btn {
        padding: 12px 16px;
        font-size: 0.85rem;
    }

    .btn-sm {
        min-height: 36px;
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .theme-toggle {
        top: 70px;
        right: 15px;
        padding: 8px 12px;
        font-size: 13px;
        z-index: 997;
        min-height: 40px;
    }

    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 280px;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 20px rgba(0,0,0,0.15);
        overflow-y: auto;
        will-change: transform;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.6);
        z-index: 999;
        backdrop-filter: blur(2px);
    }

    .sidebar-overlay.active {
        display: block;
    }

    .mobile-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        background: var(--white);
        border-bottom: 1px solid var(--gray-200);
        position: sticky;
        top: 0;
        z-index: 998;
        min-height: 60px;
    }
    
    .main-content {
        padding: 16px;
        margin-top: 0;
        min-height: calc(100vh - 60px);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 24px;
    }
    
    .stat-card {
        padding: 16px;
        flex-direction: row;
        text-align: left;
        gap: 16px;
        align-items: center;
    }
    
    .stat-icon {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
        flex-shrink: 0;
    }
    
    .stat-content h3 {
        font-size: 1.75rem;
        margin-bottom: 4px;
    }
    
    .stat-content p {
        font-size: 0.8rem;
    }
    
    .reservation-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .import-methods {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .search-form {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .search-form input {
        flex: 1;
        margin-bottom: 0;
        min-width: 0;
        width: 100%;
    }

    .search-form .btn {
        white-space: nowrap;
        flex-shrink: 0;
        width: 100%;
    }

    .input-group {
        flex-direction: column;
        gap: 12px;
    }

    .input-group input {
        width: 100%;
    }

    .input-group .btn {
        width: 100%;
        min-width: auto;
    }
    
    .page-header {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding-bottom: 12px;
        margin-bottom: 20px;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
        flex: 1;
    }
    
    .page-actions {
        flex-shrink: 0;
    }
    
    .form-actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: flex-end;
    }
    
    .btn {
        padding: 12px 16px;
        font-size: 0.8rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }
    
    .btn-full {
        width: 100%;
    }
    
    .modal-content {
        margin: 5% auto 0;
        width: 95%;
        padding: 24px;
        max-height: 85vh;
        overflow-y: auto;
    }

    .modal-actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    .modal-actions .btn {
        flex: 1;
        min-width: 120px;
    }
    
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -4px;
        border-radius: 8px;
    }
    
    .data-table {
        min-width: 600px;
        font-size: 0.85rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 12px 8px;
    }

    .data-table td:last-child {
        white-space: nowrap;
        min-width: 150px;
    }

    .data-table td .btn-sm {
        padding: 6px 10px;
        font-size: 0.7rem;
        margin: 2px;
        display: inline-block;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
        max-width: none;
        padding: 20px;
        max-height: 90vh;
    }
    
    /* Scrollbar customizada para mobile */
    .table-container::-webkit-scrollbar {
        height: 6px;
    }
    
    .table-container::-webkit-scrollbar-track {
        background: var(--gray-100);
        border-radius: 3px;
    }
    
    .table-container::-webkit-scrollbar-thumb {
        background: var(--primary-red);
        border-radius: 3px;
    }
    
    .table-container::-webkit-scrollbar-thumb:hover {
        background: var(--primary-red-dark);
    }
}

@media (max-width: 480px) {
    .data-table {
        min-width: 500px;
        font-size: 0.75rem;
    }

    .data-table th,
    .data-table td {
        padding: 8px 6px;
    }

    .modal-content {
        margin: 2% auto;
        width: 98%;
        padding: 15px;
        max-height: 95vh;
    }

    .btn-sm {
        padding: 6px 8px;
        font-size: 0.7rem;
        min-height: 32px;
    }

    .data-table th {
        font-size: 0.75rem;
    }

    .ip-address {
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    .dashboard-header h1 {
        font-size: 1.75rem;
        text-align: left;
        margin-bottom: 8px;
    }

    .dashboard-header p {
        text-align: left;
        font-size: 1rem;
    }

    .dashboard-charts {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .chart-container {
        height: 300px;
        padding: 16px 12px;
    }

    .chart-container h2 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .pagination {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
        padding: 16px;
    }
    
    .alert {
        padding: 16px;
        margin-bottom: 16px;
        font-size: 0.9rem;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px;
        font-size: 16px; /* Prevent zoom on iOS */
        border-radius: 8px;
    }
    
    .input-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .input-group input {
        margin-bottom: 0;
    }
    
    .status-info-cards {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .info-card {
        padding: 16px;
        flex-direction: row;
        text-align: left;
        gap: 12px;
        align-items: center;
    }
    
    .info-icon {
        font-size: 1.5rem;
        width: 40px;
        flex-shrink: 0;
    }
    
    .info-content h3 {
        font-size: 1rem;
        margin-bottom: 4px;
    }
    
    .info-content p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .search-bar {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .import-container,
    .form-card,
    .ip-info-card,
    .reservation-form-card {
        padding: 20px 16px;
    }
    
    .import-method {
        padding: 16px;
        text-align: left;
    }
    
    .import-method h3 {
        font-size: 1.125rem;
        margin-bottom: 8px;
    }
    
    .import-method p {
        font-size: 0.8rem;
    }
    
    .ip-display {
        font-size: 1.5rem;
        padding: 16px;
        margin: 16px 0;
    }
    
    .dashboard-charts {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
    }

    .chart-container {
        padding: 20px 16px;
        height: 350px;
    }

    .chart-container h2 {
        font-size: 1.25rem;
        margin-bottom: 16px;
    }
    
    /* Fix button text wrapping */
    .btn-sm {
        padding: 8px 12px;
        font-size: 0.75rem;
        min-height: 36px;
    }
    
    /* Improve touch targets */
    .status-badge {
        padding: 4px 12px;
        font-size: 0.7rem;
    }
    
    .role-badge {
        padding: 4px 12px;
        font-size: 0.7rem;
    }
    
    /* Better spacing for cards */
    .dashboard .alert {
        margin-bottom: 20px;
    }
    
    .dashboard .alert h3 {
        font-size: 1.125rem;
        margin-bottom: 8px;
    }
    
    .dashboard .alert p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Improve form layout */
    .reservation-form .form-group label {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }
    
    .reservation-form .form-group small {
        font-size: 0.75rem;
        margin-top: 4px;
    }
    
    /* Better modal on mobile */
    .modal-content h2 {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }
    
    .modal-content p {
        font-size: 0.9rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    .modal-actions {
        gap: 8px;
        flex-direction: row;
        justify-content: flex-end;
    }
    
    .modal-actions .btn {
        flex: 1;
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .sidebar-logo {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
        padding: 6px;
    }

    .mobile-logo {
        width: 28px;
        height: 28px;
    }

    .mobile-header-branding {
        gap: 8px;
    }

    .mobile-title {
        font-size: 1rem;
    }

    .theme-toggle {
        top: 12px;
        right: 12px;
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .login-container {
        padding: 12px;
    }
    
    .login-card {
        border-radius: 20px;
    }
    
    .mobile-header {
        padding: 10px 12px;
        min-height: 56px;
    }
    
    .mobile-title {
        font-size: 1rem;
    }
    
    .mobile-menu-btn {
        width: 40px;
        height: 40px;
        padding: 10px;
        font-size: 1.125rem;
    }
    
    .main-content {
        padding: 12px;
        min-height: calc(100vh - 56px);
    }
    
    .sidebar {
        width: 260px;
    }
    
    .login-container {
        padding: 12px;
    }
    
    .login-header {
        padding: 40px 24px 32px;
    }
    
    .login-header h1 {
        font-size: 1.6rem;
    }
    
    .login-header p {
        font-size: 1rem;
    }
    
    .restricted-area {
        margin: 0 20px;
        margin-top: -16px;
        padding: 14px 16px;
        border-radius: 12px;
    }
    
    .restricted-icon {
        font-size: 1.25rem;
    }
    
    .restricted-text strong {
        font-size: 0.85rem;
    }
    
    .restricted-text span {
        font-size: 0.75rem;
    }
    
    .login-form {
        padding: 32px 24px 24px;
    }
    
    .login-form .form-group {
        margin-bottom: 24px;
    }
    
    .login-form .form-group input {
        padding: 14px 16px;
        font-size: 16px; /* Prevent zoom on iOS */
        border-radius: 10px;
    }
    
    .login-form .btn {
        padding: 16px 20px;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    .login-footer {
        padding: 20px 24px;
        font-size: 0.8rem;
    }
    
    .alert.alert-error {
        margin: 0 24px 16px;
        padding: 14px 16px;
        font-size: 0.85rem;
    }
    
    .data-table {
        font-size: 0.75rem;
        min-width: 600px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 6px;
    }
    
    .data-table th {
        font-size: 0.7rem;
    }
    
    .stat-card {
        padding: 12px;
        gap: 12px;
    }
    
    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 1.125rem;
    }
    
    .stat-content h3 {
        font-size: 1.5rem;
    }
    
    .stat-content p {
        font-size: 0.75rem;
    }
    
    .ip-display {
        font-size: 1.25rem;
        padding: 12px;
        margin: 12px 0;
    }
    
    .dashboard-header h1 {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }
    
    .dashboard-header p {
        font-size: 0.9rem;
    }
    
    .page-header h1 {
        font-size: 1.25rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .page-actions {
        width: 100%;
        display: flex;
        gap: 8px;
    }
    
    .page-actions .btn {
        flex: 1;
        font-size: 0.75rem;
        padding: 10px 12px;
    }
    
    .search-form {
        flex-direction: column;
        gap: 8px;
    }
    
    .search-form .btn {
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .input-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .input-group .btn {
        width: 100%;
        margin-top: 4px;
    }
    
    .import-container,
    .form-card,
    .ip-info-card,
    .reservation-form-card,
    .search-bar {
        padding: 16px 12px;
    }

    .dashboard-charts {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0;
    }

    .chart-container {
        padding: 16px 12px;
        height: 250px;
    }

    .info-card {
        padding: 12px;
        gap: 10px;
    }

    .info-icon {
        font-size: 1.25rem;
        width: 32px;
    }

    .info-content h3 {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }

    .info-content p {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .chart-container h2 {
        font-size: 1.125rem;
        margin-bottom: 12px;
    }
    
    .modal-content {
        margin: 5% auto 0;
        padding: 16px;
        width: 98%;
        max-height: 90vh;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-actions .btn {
        width: 100%;
        max-width: none;
    }
    
    .pagination {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }
    
    .pagination .btn {
        width: 100%;
        justify-content: center;
    }
    
    .page-info {
        order: -1;
        text-align: center;
        font-size: 0.8rem;
        padding: 8px;
        background: var(--gray-100);
        border-radius: 6px;
    }
    
    .alert {
        padding: 12px;
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .alert h3 {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .alert p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .btn {
        padding: 10px 14px;
        font-size: 0.75rem;
        min-height: 40px;
        border-radius: 8px;
    }
    
    .btn-sm {
        padding: 6px 10px;
        font-size: 0.7rem;
        min-height: 32px;
    }
    
    .status-badge,
    .role-badge {
        padding: 3px 8px;
        font-size: 0.65rem;
        border-radius: 12px;
    }
    
    .ip-address {
        font-size: 0.75rem;
        padding: 3px 6px;
        border-radius: 4px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-group label {
        font-size: 0.75rem;
        margin-bottom: 4px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 16px;
        border-radius: 6px;
    }
    
    .form-group small {
        font-size: 0.7rem;
        margin-top: 2px;
    }
    
    .import-method {
        padding: 12px;
    }
    
    .import-method h3 {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .import-method p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .no-data {
        padding: 40px 20px !important;
        font-size: 1rem;
        text-align: center;
    }
    
    /* Improve sidebar on very small screens */
    .sidebar-header {
        padding: 20px 16px;
    }
    
    .sidebar-header h2 {
        font-size: 1.375rem;
    }
    
    .sidebar-header p {
        font-size: 0.8rem;
    }
    
    .sidebar-footer {
        padding: 16px;
    }
    
    .user-info p {
        font-size: 0.9rem;
    }
    
    .user-info small {
        font-size: 0.8rem;
    }
    
    .menu-item {
        padding: 14px 16px;
        font-size: 0.9rem;
    }
    
    .menu-icon {
        font-size: 1.125rem;
        margin-right: 10px;
        width: 20px;
    }
}

/* Utilities */
.text-muted {
    color: var(--gray-500);
}

.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in {
    animation: slideIn 0.4s ease-out;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--gray-300);
    border-top-color: var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mensagem de Sucesso Melhorada */
.success-message-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 8px 0;
}

.success-icon-large {
    font-size: 3rem;
    animation: bounce 2s infinite;
    flex-shrink: 0;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.success-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--green);
    margin: 0 0 12px 0;
    letter-spacing: 0.5px;
}

.success-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-700);
    margin: 0;
    font-weight: 500;
}

.success-description br {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .success-message-container {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .success-icon-large {
        font-size: 2.5rem;
        align-self: center;
    }
    
    .success-title {
        font-size: 1.25rem;
    }
    
    .success-description {
        font-size: 0.9rem;
    }
}

/* Garantir responsividade total */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Responsividade geral */
@media (max-width: 768px) {
    .sidebar {
        width: 280px;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 20px rgba(0,0,0,0.15);
        height: 100vh;
        overflow-y: auto;
        will-change: transform;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.6);
        z-index: 999;
        backdrop-filter: blur(2px);
    }

    .sidebar-overlay.active {
        display: block;
    }

    .mobile-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        background: var(--white);
        border-bottom: 1px solid var(--gray-200);
        position: sticky;
        top: 0;
        z-index: 998;
        min-height: 60px;
    }
    
    .main-content {
        padding: 16px;
        margin-top: 0;
        min-height: calc(100vh - 60px);
    }
}