@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Reset e base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0a;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(0, 123, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 123, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 123, 255, 0.1) 0%, transparent 50%);
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
}

.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.dashboard {
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 162, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 162, 255, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 162, 255, 0.3);
    border-radius: 25px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 100px rgba(0, 162, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(0, 162, 255, 0.2);
    overflow: hidden;
    width: 100%;
    max-width: 1400px;
    position: relative;
    animation: containerGlow 3s ease-in-out infinite alternate;
    margin: 20px;
}

@keyframes containerGlow {
    0% {
        box-shadow: 
            0 25px 50px rgba(0, 0, 0, 0.5),
            0 0 0 1px rgba(0, 123, 255, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    100% {
        box-shadow: 
            0 25px 50px rgba(0, 0, 0, 0.5),
            0 0 0 1px rgba(0, 123, 255, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 0 30px rgba(0, 123, 255, 0.1);
    }
}

/* Login Section */
.login-section {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 123, 255, 0.05) 100%);
    color: white;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-right: 1px solid rgba(0, 123, 255, 0.2);
}

.login-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.login-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at var(--mouse-x, 30%) var(--mouse-y, 20%), rgba(0, 123, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at calc(100% - var(--mouse-x, 70%)) calc(100% - var(--mouse-y, 80%)), rgba(0, 123, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    transition: background 0.3s ease;
}

.login-section {
    --mouse-x: 30%;
    --mouse-y: 20%;
}

/* Particelle animate */
.login-section .particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.login-section .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 123, 255, 0.6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.8);
}

.login-section .particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.login-section .particle:nth-child(2) {
    left: 20%;
    animation-delay: 1s;
    animation-duration: 6s;
}

.login-section .particle:nth-child(3) {
    left: 30%;
    animation-delay: 2s;
    animation-duration: 7s;
}

.login-section .particle:nth-child(4) {
    left: 40%;
    animation-delay: 0.5s;
    animation-duration: 9s;
}

.login-section .particle:nth-child(5) {
    left: 50%;
    animation-delay: 1.5s;
    animation-duration: 5s;
}

.login-section .particle:nth-child(6) {
    left: 60%;
    animation-delay: 3s;
    animation-duration: 8s;
}

.login-section .particle:nth-child(7) {
    left: 70%;
    animation-delay: 2.5s;
    animation-duration: 6s;
}

.login-section .particle:nth-child(8) {
    left: 80%;
    animation-delay: 4s;
    animation-duration: 7s;
}

.login-section .particle:nth-child(9) {
    left: 90%;
    animation-delay: 1.2s;
    animation-duration: 9s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(10vh) scale(1);
    }
    100% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }
}

/* Effetto mouse hover */
.login-section:hover::after {
    background: 
        radial-gradient(circle at var(--mouse-x, 30%) var(--mouse-y, 20%), rgba(0, 123, 255, 0.25) 0%, transparent 60%),
        radial-gradient(circle at calc(100% - var(--mouse-x, 70%)) calc(100% - var(--mouse-y, 80%)), rgba(0, 123, 255, 0.15) 0%, transparent 60%);
}

.login-section:hover .particle {
    animation-duration: 3s;
    box-shadow: 0 0 15px rgba(0, 123, 255, 1);
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.login-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #007bff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 123, 255, 0.3);
    position: relative;
    z-index: 2;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        text-shadow: 0 0 30px rgba(0, 123, 255, 0.3);
    }
    100% {
        text-shadow: 0 0 40px rgba(0, 123, 255, 0.5), 0 0 60px rgba(0, 123, 255, 0.2);
    }
}

.login-section p {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 400px;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.9);
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.main-logo {
    width: 100%;
    max-width: 250px;
    min-width: 150px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 162, 255, 0.5));
    transition: all 0.3s ease;
}

.main-logo:hover {
    filter: drop-shadow(0 0 30px rgba(0, 162, 255, 0.8));
    transform: scale(1.05);
}

/* Responsive logo sizes */
@media (max-width: 768px) {
    .main-logo {
        max-width: 180px;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .login-container {
        width: 98%;
        padding: 25px 20px;
        border-radius: 18px;
        margin: 10px auto;
    }
    
    .login-section {
        padding: 15px 0;
        margin-bottom: 20px;
    }
    
    .form-section {
        gap: 18px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .form-group input {
        padding: 14px 18px;
        font-size: 14px;
        border-radius: 12px;
    }
    
    .btn-primary {
        padding: 14px 18px;
        font-size: 15px;
        border-radius: 12px;
    }
    
    .main-logo {
        max-width: 150px;
        min-width: 100px;
    }
    
    .logo-container {
        margin-bottom: 15px;
    }
    
    body {
        padding: 10px;
    }
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.5), transparent);
}

/* Login Container */
.login-container {
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.15);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 162, 255, 0.4);
    border-radius: 25px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(0, 162, 255, 0.15);
    overflow: hidden;
    position: relative;
    animation: containerGlow 3s ease-in-out infinite alternate;
    padding: 40px;
}

.login-container .login-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: radial-gradient(
        circle at calc(var(--mouse-x, 50) * 1%) calc(var(--mouse-y, 50) * 1%),
        rgba(0, 162, 255, 0.15) 0%,
        rgba(0, 162, 255, 0.05) 40%,
        transparent 70%
    );
    transition: background 0.3s ease;
    padding: 30px 0;
    margin-bottom: 30px;
}

.login-container .form-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}



.error-message {
    color: #e53e3e;
    margin-top: 15px;
    padding: 10px;
    background: rgba(254, 226, 226, 0.8);
    border-radius: 5px;
    display: none;
}

/* Dashboard Styles */
.dashboard {
    width: 100%;
    max-width: 1200px;
    background: rgba(15, 23, 42, 0.15);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 123, 255, 0.2);
    border-radius: 20px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(0, 123, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    animation: containerGlow 3s ease-in-out infinite alternate;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
    padding: 40px 30px;
}

.stat-card {
    background: rgba(15, 23, 42, 0.15);
    backdrop-filter: blur(25px);
    padding: 30px;
    border-radius: 18px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 162, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 20px rgba(0, 162, 255, 0.1);
    border-left: 4px solid rgba(0, 162, 255, 0.8);
    border-top: 1px solid rgba(0, 162, 255, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(0, 162, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 40px rgba(0, 162, 255, 0.3),
        0 0 80px rgba(0, 162, 255, 0.1);
    border-left-color: rgba(0, 162, 255, 1);
}

.stat-card h3 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.stat-card .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.stat-card .change {
    font-size: 0.8rem;
    color: #00d4aa;
    position: relative;
    z-index: 1;
}

.header {
    background: 
        linear-gradient(135deg, rgba(0, 162, 255, 0.2) 0%, rgba(102, 126, 234, 0.15) 50%, rgba(118, 75, 162, 0.2) 100%),
        linear-gradient(45deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
    color: white;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 162, 255, 0.3);
    backdrop-filter: blur(20px);
    position: relative;
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    text-shadow: 
        0 0 20px rgba(0, 162, 255, 0.5),
        0 0 40px rgba(0, 162, 255, 0.2);
    letter-spacing: 0.5px;
}

.header h1 i {
    margin-right: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    background: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: #edf2f7;
    color: #4a5568;
}

.tab-btn.active {
    color: #000000;
    border-bottom-color: #00acfc;
    background: white;
}

.tab-btn i {
    margin-right: 8px;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 20px;
    min-height: 500px;
}

#subscription-monitoring.tab-content {
    padding: 15px;
}

.tab-content.active {
    display: block;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.header-actions .btn-primary,
.header-actions .btn-secondary {
    white-space: nowrap;
    min-width: auto;
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
}

.content-header h2 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.search-box {
    position: relative;
    max-width: 300px;
    flex: 1;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}

.search-box input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
}

/* Licenses Grid */
.licenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.license-card {
    background: 
        linear-gradient(135deg, rgba(0, 162, 255, 0.049) 0%, rgba(102, 126, 234, 0.049) 50%, rgba(118, 75, 162, 0.049) 100%),
        linear-gradient(45deg, rgba(15, 23, 42, 0.049) 0%, rgba(30, 41, 59, 0.049) 100%);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.license-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.license-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.license-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
}

.license-type {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.license-type.esx {
    background: #c6f6d5;
    color: #22543d;
}

.license-type.qb {
    background: #bee3f8;
    color: #2a4365;
}

.license-info {
    margin-bottom: 15px;
}

.license-info p {
    margin-bottom: 5px;
    font-size: 14px;
    color: #ffffff;
}

.license-info strong {
    color: #ffffff;
}

.license-status {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-indicator.active {
    background: #48bb78;
}

.status-indicator.inactive {
    background: #f56565;
}

.license-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Classe base per tutti i bottoni */
.btn {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: 2px solid rgba(0, 162, 255, 0.5);
    border-radius: 15px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 162, 255, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

/* Bottone Copia Codice più piccolo */
.btn-copy {
    width: auto !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    min-width: 120px;
}

/* Pulsante Test - Verde */
.btn-secondary:has(i.fa-wifi) {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.08) 100%) !important;
    border-color: rgba(34, 197, 94, 0.5) !important;
    color: rgba(34, 197, 94, 0.95) !important;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2) !important;
}

.btn-secondary:has(i.fa-wifi):hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(34, 197, 94, 0.15) 100%) !important;
    border-color: rgba(34, 197, 94, 0.8) !important;
    color: rgba(34, 197, 94, 1) !important;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4), 0 0 25px rgba(34, 197, 94, 0.3) !important;
}

/* Pulsante Error Message - Viola */
.btn-secondary:has(i.fa-times) {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.15) 0%, rgba(147, 51, 234, 0.08) 100%) !important;
    border-color: rgba(147, 51, 234, 0.5) !important;
    color: rgba(147, 51, 234, 0.95) !important;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.2) !important;
}

.btn-secondary:has(i.fa-times):hover {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.25) 0%, rgba(147, 51, 234, 0.15) 100%) !important;
    border-color: rgba(147, 51, 234, 0.8) !important;
    color: rgba(147, 51, 234, 1) !important;
    box-shadow: 0 8px 20px rgba(147, 51, 234, 0.4), 0 0 25px rgba(147, 51, 234, 0.3) !important;
}

/* Pulsante Elimina - Rosso Intenso */
.btn-danger:has(i.fa-trash) {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.15) 100%) !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
    color: rgba(239, 68, 68, 1) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

.btn-danger:has(i.fa-trash):hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.35) 0%, rgba(220, 38, 38, 0.25) 100%) !important;
    border-color: rgba(239, 68, 68, 0.9) !important;
    color: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.5), 0 0 25px rgba(239, 68, 68, 0.4) !important;
    transform: translateY(-2px) scale(1.02) !important;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: linear-gradient(135deg, #0056b3, #007bff);
    box-shadow: 0 15px 40px rgba(0, 162, 255, 0.5), 0 0 30px rgba(0, 162, 255, 0.3);
    transform: translateY(-3px);
    border-color: rgba(0, 162, 255, 0.8);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 162, 255, 0.4);
}

.btn-primary, .btn-secondary, .btn-danger {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-primary {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: 2px solid rgba(0, 162, 255, 0.5);
    border-radius: 15px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 162, 255, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #007bff);
    box-shadow: 0 15px 40px rgba(0, 162, 255, 0.5), 0 0 30px rgba(0, 162, 255, 0.3);
    transform: translateY(-3px);
    border-color: rgba(0, 162, 255, 0.8);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 162, 255, 0.4);
}

.btn-secondary {
    background: #a0aec0;
    color: white;
}

.btn-secondary:hover {
    background: #718096;
}

.btn-danger {
    background: #f56565;
    color: white;
}

.btn-danger:hover {
    background: #e53e3e;
}

/* Form Styles */
.license-form {
    max-width: 600px;
    background:         
        linear-gradient(135deg, rgba(0, 162, 255, 0.049) 0%, rgba(102, 126, 234, 0.049) 50%, rgba(118, 75, 162, 0.049) 100%),
        linear-gradient(45deg, rgba(15, 23, 42, 0.049) 0%, rgba(30, 41, 59, 0.049) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 123, 255, 0.2);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(0, 123, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 0;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: left;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid rgba(0, 123, 255, 0.4);
    border-radius: 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(15, 15, 15, 0.222);
    color: #ffffff;
    backdrop-filter: blur(15px);
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    background: rgba(15, 15, 15, 1);
    box-shadow: 
        0 0 25px rgba(0, 123, 255, 0.4),
        inset 0 0 10px rgba(0, 123, 255, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Logs Container */
.logs-container {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(0, 162, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.log-entry {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(0, 162, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.log-entry.success {
    border-color: rgba(0, 212, 170, 0.3);
}

.log-entry.error {
    border-color: rgba(239, 68, 68, 0.3);
}

.log-entry.warning {
    border-color: rgba(245, 158, 11, 0.3);
}

.log-entry.info {
    border-color: rgba(59, 130, 246, 0.3);
}

.log-entry.monitor-log {
    background: rgba(0, 162, 255, 0.05);
    border-left: 4px solid rgba(0, 162, 255, 0.6);
}

.log-entry.local-log {
    background: rgba(30, 41, 59, 0.8);
    border-left: 4px solid rgba(160, 174, 192, 0.4);
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.log-timestamp {
    color: rgba(160, 174, 192, 0.8);
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
}

.log-source {
    background: rgba(0, 162, 255, 0.2);
    color: rgba(0, 162, 255, 0.9);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.log-message {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 5px;
}

.log-details {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 162, 255, 0.1);
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 8px;
    font-size: 0.8rem;
    color: rgba(160, 174, 192, 0.9);
    font-family: 'Courier New', monospace;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: white;
    font-size: 16px;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: rgba(27, 0, 134, 0.807);
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 123, 255, 0.2);
    border-radius: 15px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(0, 123, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.modal-content h3 {
    margin-bottom: 15px;
    color: #ffffff;
}

.modal-content p {
    margin-bottom: 25px;
    color: #ffffff;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Table Styles */
.table-container {
    background: rgba(15, 23, 42, 0.15);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 162, 255, 0.4);
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(0, 162, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 40px;
    position: relative;
    max-width: 100%;
}

.table-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 162, 255, 0.8), transparent);
}

.table-header {
    background: 
        linear-gradient(135deg, rgba(0, 162, 255, 0.25) 0%, rgba(0, 162, 255, 0.15) 100%),
        radial-gradient(circle at top right, rgba(0, 162, 255, 0.1) 0%, transparent 70%);
    color: white;
    padding: 25px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(0, 162, 255, 0.4);
    position: relative;
}

.table-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #00a2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 162, 255, 0.4);
}

table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
}

th, td {
    padding: 18px 24px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 162, 255, 0.15);
    color: #ffffff;
    transition: all 0.4s ease;
}

th {
    background: 
        linear-gradient(135deg, rgba(0, 162, 255, 0.2) 0%, rgba(0, 162, 255, 0.1) 100%);
    font-weight: 700;
    color: rgba(0, 162, 255, 0.95);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 162, 255, 0.3);
    border-bottom: 2px solid rgba(0, 162, 255, 0.3);
}

tbody tr {
    transition: all 0.3s ease;
    position: relative;
}

tbody tr:hover {
    background: 
        linear-gradient(90deg, rgba(0, 162, 255, 0.08) 0%, rgba(0, 162, 255, 0.12) 50%, rgba(0, 162, 255, 0.08) 100%);
    transform: translateX(8px) scale(1.01);
    box-shadow: 
        0 5px 15px rgba(0, 162, 255, 0.2),
        inset 0 0 20px rgba(0, 162, 255, 0.05);
}

tbody tr:hover td {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 8px rgba(0, 162, 255, 0.3);
}

.status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid;
    backdrop-filter: blur(10px);
}

.status.active {
    background: rgba(0, 212, 170, 0.2);
    color: #00d4aa;
    border-color: #00d4aa;
    box-shadow: 0 0 10px rgba(0, 212, 170, 0.3);
}

.status.inactive {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border-color: #ff6b6b;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

/* Action Buttons */
.btn-small {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    border: 2px solid rgba(0, 162, 255, 0.5);
    background: 
        linear-gradient(135deg, rgba(0, 162, 255, 0.15) 0%, rgba(0, 162, 255, 0.08) 100%);
    color: rgba(0, 162, 255, 0.95);
    cursor: pointer;
    transition: all 0.4s ease;
    margin: 0 4px;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 162, 255, 0.2);
}

.btn-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 162, 255, 0.4), transparent);
    transition: left 0.5s;
}

.btn-small:hover::before {
    left: 100%;
}

.btn-edit {
    background: 
        linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.08) 100%);
    border-color: rgba(34, 197, 94, 0.5);
    color: rgba(34, 197, 94, 0.95);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.btn-edit:hover {
    background: 
        linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(34, 197, 94, 0.15) 100%);
    border-color: rgba(34, 197, 94, 0.8);
    color: rgba(34, 197, 94, 1);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 20px rgba(34, 197, 94, 0.4),
        0 0 25px rgba(34, 197, 94, 0.3);
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.btn-delete {
    background: 
        linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.08) 100%);
    border-color: rgba(239, 68, 68, 0.5);
    color: rgba(239, 68, 68, 0.95);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-delete:hover {
    background: 
        linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(239, 68, 68, 0.15) 100%);
    border-color: rgba(239, 68, 68, 0.8);
    color: rgba(239, 68, 68, 1);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 20px rgba(239, 68, 68, 0.4),
        0 0 25px rgba(239, 68, 68, 0.3);
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.btn-toggle {
    background: 
        linear-gradient(135deg, rgba(0, 212, 170, 0.25) 0%, rgba(0, 212, 170, 0.15) 100%);
    border-color: rgba(0, 212, 170, 0.6);
    color: rgba(0, 212, 170, 1);
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3);
}

.btn-toggle:hover {
    background: 
        linear-gradient(135deg, rgba(0, 212, 170, 0.35) 0%, rgba(0, 212, 170, 0.25) 100%);
    border-color: rgba(0, 212, 170, 0.9);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 20px rgba(0, 212, 170, 0.5),
        0 0 30px rgba(0, 212, 170, 0.4);
    text-shadow: 0 0 12px rgba(0, 212, 170, 0.6);
}

.btn-toggle.inactive {
    background: 
        linear-gradient(135deg, rgba(160, 174, 192, 0.15) 0%, rgba(160, 174, 192, 0.08) 100%);
    border-color: rgba(160, 174, 192, 0.5);
    color: rgba(160, 174, 192, 0.95);
    box-shadow: 0 4px 12px rgba(160, 174, 192, 0.2);
}

.btn-toggle.inactive:hover {
    background: 
        linear-gradient(135deg, rgba(160, 174, 192, 0.25) 0%, rgba(160, 174, 192, 0.15) 100%);
    border-color: rgba(160, 174, 192, 0.8);
    color: rgba(160, 174, 192, 1);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 20px rgba(160, 174, 192, 0.4),
        0 0 25px rgba(160, 174, 192, 0.3);
    text-shadow: 0 0 10px rgba(160, 174, 192, 0.5);
}

.btn-info {
    background: 
        linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
    border-color: rgba(59, 130, 246, 0.5);
    color: rgba(59, 130, 246, 0.95);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn-info:hover {
    background: 
        linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0.15) 100%);
    border-color: rgba(59, 130, 246, 0.8);
    color: rgba(59, 130, 246, 1);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 20px rgba(59, 130, 246, 0.4),
        0 0 25px rgba(59, 130, 246, 0.3);
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.btn-warning {
    background: 
        linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.08) 100%);
    border-color: rgba(245, 158, 11, 0.5);
    color: rgba(245, 158, 11, 0.95);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.btn-warning:hover {
    background: 
        linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0.15) 100%);
    border-color: rgba(245, 158, 11, 0.8);
    color: rgba(245, 158, 11, 1);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 20px rgba(245, 158, 11, 0.4),
        0 0 25px rgba(245, 158, 11, 0.3);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* Obfuscator Styles */
.obfuscator-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    margin-top: 20px;
    min-height: 600px;
}

.obfuscator-input,
.obfuscator-output {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(0, 162, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.obfuscator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 162, 255, 0.1);
}

.obfuscator-header h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.obfuscator-actions {
    display: flex;
    gap: 10px;
}

.obfuscator-textarea {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 162, 255, 0.3);
    border-radius: 10px;
    padding: 15px;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    min-height: 400px;
    transition: all 0.3s ease;
}

.obfuscator-textarea:focus {
    outline: none;
    border-color: rgba(0, 162, 255, 0.6);
    box-shadow: 0 0 20px rgba(0, 162, 255, 0.3);
}

.obfuscator-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.obfuscator-controls {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(0, 162, 255, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.obfuscate-btn {
    padding: 20px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 15px;
    min-width: 200px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(0, 162, 255, 0.4);
    transition: all 0.4s ease;
}

.obfuscate-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 162, 255, 0.6);
}

.obfuscator-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.checkbox-label:hover {
    color: rgba(0, 162, 255, 0.9);
}

.checkbox-label input[type="checkbox"]:checked ~ span:not(.checkmark) {
    color: #10b981;
    font-weight: 600;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid rgba(100, 116, 139, 0.5);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.checkmark:hover {
    border-color: rgba(148, 163, 184, 0.7);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #10b981;
    border-color: #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #10b981;
    background: white;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    width: 16px;
    height: 16px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.file-management-section {
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 8px;
    padding: 15px;
    background: rgba(15, 23, 42, 0.5);
    margin-top: 8px;
}

.current-file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 6px;
    margin-bottom: 15px;
}

.file-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.file-info-item i {
    color: #10b981;
    font-size: 16px;
}

.file-size {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-left: 10px;
}

.file-upload-section {
    text-align: center;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.obfuscation-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 162, 255, 0.1);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.obfuscator-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(0, 162, 255, 0.8);
    font-size: 14px;
}

.btn-success {
    background: 
        linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.08) 100%);
    border-color: rgba(34, 197, 94, 0.5);
    color: rgba(34, 197, 94, 0.95);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.btn-success:hover {
    background: 
        linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(34, 197, 94, 0.15) 100%);
    border-color: rgba(34, 197, 94, 0.8);
    color: rgba(34, 197, 94, 1);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 20px rgba(34, 197, 94, 0.4),
        0 0 25px rgba(34, 197, 94, 0.3);
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .obfuscator-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 20px;
    }
    
    .obfuscator-controls {
        order: 2;
    }
    
    .obfuscator-output {
        order: 3;
    }
    
    .obfuscate-btn {
        min-width: auto;
        width: 100%;
    }
    
    .obfuscator-options {
        width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        margin: 0;
        min-height: auto;
        border-radius: 15px;
    }
    
    .login-container {
        width: 95%;
        padding: 30px 25px;
        border-radius: 20px;
    }
    
    .login-section {
        padding: 20px 0;
        margin-bottom: 25px;
    }
    
    .form-section {
        gap: 20px;
    }
    
    .form-group input {
        padding: 16px 20px;
        font-size: 15px;
    }
    
    .btn-primary {
        padding: 16px 20px;
        font-size: 16px;
    }
    
    .login-section h1 {
        font-size: 2rem;
    }
    
    .dashboard {
        margin: 0;
        padding: 20px;
    }
    
    .dashboard h1 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .nav-tabs {
        flex-direction: column;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .content-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .licenses-grid {
        grid-template-columns: 1fr;
    }
    
    .license-actions {
        justify-content: center;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .table-container {
        overflow-x: auto;
        margin: 0 -20px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    table {
        min-width: 600px;
    }
    
    th, td {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .btn-small {
        padding: 8px 12px;
        font-size: 0.7rem;
        margin: 0 2px;
    }
}

@media (max-width: 480px) {

    
    .license-form {
        padding: 20px;
    }
}

/* Simple Code Viewer Styles */
.simple-code-viewer {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: 
        linear-gradient(135deg, rgba(0, 162, 255, 0.2) 0%, rgba(102, 126, 234, 0.15) 50%, rgba(118, 75, 162, 0.2) 100%), 
        linear-gradient(45deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
    border-bottom: 1px solid #00c8ff;
}

.code-header h3 {
    margin: 0;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.code-header h3 i {
    color: #007bff;
}

.code-container {
    position: relative;
}

.simple-code-textarea {
    width: 100%;
    height: 500px;
    border: none;
    outline: none;
    padding: 20px;
    font-family: 'Courier New', Monaco, monospace;
    font-size: 14px;
    line-height: 1.6;
    background: linear-gradient(135deg, rgba(0, 162, 255, 0.049) 0%, rgba(102, 126, 234, 0.049) 50%, rgba(118, 75, 162, 0.049) 100%), linear-gradient(45deg, rgba(15, 23, 42, 0.049) 0%, rgba(30, 41, 59, 0.049) 100%);
    color: #333;
    resize: none;
    box-sizing: border-box;
}

.simple-code-textarea:focus {
    background: #ffffff;
}

.code-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #f1f3f4;
    border-top: 1px solid #e0e0e0;
    font-size: 12px;
    color: #666;
}

/* Responsive Design for Simple Code Viewer */
@media (max-width: 768px) {
    .code-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .simple-code-textarea {
        height: 400px;
        font-size: 12px;
    }
    
    .code-info {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}

/* User Management Styles */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.user-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(51, 65, 85, 0.6) 100%);
    border: 1px solid rgba(0, 162, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.user-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00a2ff, #0066cc);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.user-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 162, 255, 0.2);
    border-color: rgba(0, 162, 255, 0.4);
}

.user-card:hover::before {
    opacity: 1;
}

.user-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.user-info h3 {
    color: #ffffff;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 5px;
}

.user-role {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.user-role.admin {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.2));
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.user-role.user {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.2), rgba(73, 80, 87, 0.2));
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.user-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
    font-weight: 500;
}

.user-status.active {
    color: #28a745;
}

.user-status.inactive {
    color: #dc3545;
}

.user-details {
    margin-bottom: 15px;
}

.user-details p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #cbd5e1;
    font-size: 0.9em;
}

.user-details i {
    width: 16px;
    color: #00a2ff;
}

.user-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-edit, .btn-delete {
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
}

.btn-edit {
    background: linear-gradient(135deg, #00a2ff, #0066cc);
    color: white;
}

.btn-edit:hover {
    background: linear-gradient(135deg, #0066cc, #004499);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 162, 255, 0.3);
}

.btn-delete {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.btn-delete:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

/* User Modal Styles */
#userModal .modal-content {
    max-width: 500px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
    user-select: none;
}

/* No data state */
.no-data {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.no-data i {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-data p {
    font-size: 1.1em;
    margin: 0;
}

/* Responsive adjustments for user management */
@media (max-width: 768px) {
    .users-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .user-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .user-actions {
        justify-content: flex-start;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Script Management Styles */
.script-nav-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.subscription-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.subscription-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.script-nav-btn {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 162, 255, 0.3);
    border-radius: 10px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.script-nav-btn:hover {
    background: rgba(0, 162, 255, 0.1);
    border-color: rgba(0, 162, 255, 0.5);
    color: #ffffff;
    transform: translateY(-2px);
}

.script-nav-btn.active {
    background: linear-gradient(135deg, rgba(0, 162, 255, 0.2) 0%, rgba(0, 162, 255, 0.1) 100%);
    border-color: #00a2ff;
    color: #00a2ff;
    box-shadow: 0 4px 15px rgba(0, 162, 255, 0.2);
}

.script-section {
    display: none;
    margin-top: 30px;
}

.script-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header h3 {
    color: #ffffff;
    font-size: 1.4em;
    font-weight: 600;
    margin: 0;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Archives Grid */
.archives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.archive-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 15px;
}

.archive-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
}

.archive-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.archive-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 107, 53, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: #ff6b35;
    flex-shrink: 0;
}

.archive-info {
    flex: 1;
    min-width: 0;
}

.archive-info h4 {
    color: #ffffff;
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 5px 0;
    word-break: break-word;
}

.archive-filename {
    color: #94a3b8;
    font-size: 0.85em;
    margin: 0;
    word-break: break-all;
}

.archive-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.archive-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Empty state for archives */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
    color: #ff6b35;
}

.empty-state h3 {
    color: #ffffff;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 1em;
    margin: 0;
    color: #94a3b8;
}

.category-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--category-color, #00a2ff);
}

.category-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: var(--category-color, #00a2ff);
}

.category-info h4 {
    color: #ffffff;
    font-size: 1.2em;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.category-info p {
    color: #94a3b8;
    font-size: 0.9em;
    margin: 0;
    line-height: 1.4;
}

.category-stats {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.category-stat {
    text-align: center;
}

.category-stat .number {
    display: block;
    font-size: 1.2em;
    font-weight: 600;
    color: #ffffff;
}

.category-stat .label {
    font-size: 0.8em;
    color: #94a3b8;
    margin-top: 2px;
}

.category-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.category-actions .btn-sm {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.85em;
}

/* Items Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.item-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.item-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.item-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.item-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(0, 162, 255, 0.2) 0%, rgba(0, 162, 255, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    color: #00a2ff;
    flex-shrink: 0;
    margin-top: 20px;
}

.item-info {
    flex: 1;
    min-width: 0;
    margin-top: 30px;
}

.item-info h4 {
    color: #ffffff;
    font-size: 1.3em;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.item-category {
    display: inline-block;
    background: rgba(0, 162, 255, 0.2);
    color: #00a2ff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 500;
    margin-bottom: 10px;
}

.item-description {
    color: #94a3b8;
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 20px;
}

.item-pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.price-option {
    text-align: center;
    padding: 10px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.price-option .period {
    font-size: 0.75em;
    color: #94a3b8;
    margin-bottom: 4px;
}

.price-option .price {
    font-size: 0.9em;
    font-weight: 600;
    color: #00a2ff;
}

.item-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.item-stat {
    text-align: center;
    flex: 1;
}

.item-stat .number {
    display: block;
    font-size: 1.1em;
    font-weight: 600;
    color: #ffffff;
}

.item-stat .label {
    font-size: 0.75em;
    color: #94a3b8;
    margin-top: 2px;
}

.item-actions {
    display: flex;
    gap: 10px;
}

.item-actions .btn-sm {
    flex: 1;
    padding: 10px 15px;
    font-size: 0.85em;
}

.item-status {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 5px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.status-badge.inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.status-badge.featured {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

/* Subscriptions Grid */
.subscriptions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.subscription-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
}

.subscription-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.subscription-user {
    flex: 1;
}

.subscription-user h4 {
    color: #ffffff;
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.subscription-user p {
    color: #94a3b8;
    font-size: 0.9em;
    margin: 0;
}

.subscription-type {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
    text-transform: uppercase;
}

.subscription-type.monthly {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.subscription-type.yearly {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.subscription-type.lifetime {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

.subscription-details {
    margin: 15px 0;
}

.subscription-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.subscription-detail .label {
    color: #94a3b8;
}

.subscription-detail .value {
    color: #ffffff;
    font-weight: 500;
}

.subscription-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.subscription-filters {
    display: flex;
    gap: 15px;
    align-items: center;
}

.subscription-filters select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 0.9em;
}

/* Large Modal for Items */
.large-modal {
    max-width: 700px;
    width: 85vw;
    max-height: 85vh;
    overflow-y: auto;
    margin: 20px;
}

.large-modal .modal-body {
    max-height: calc(85vh - 120px);
    overflow-y: auto;
    padding-right: 10px;
}

.large-modal .modal-body::-webkit-scrollbar {
    width: 6px;
}

.large-modal .modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.large-modal .modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 162, 255, 0.5);
    border-radius: 3px;
}

.large-modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 162, 255, 0.7);
}

/* Compact form styles for large modal */
.large-modal .form-group {
    margin-bottom: 15px;
}

.large-modal .form-row {
    margin-bottom: 10px;
}

.large-modal .form-group label {
    margin-bottom: 5px;
    font-size: 0.9em;
}

.large-modal textarea {
    min-height: 60px;
}

.large-modal .modal-header {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.large-modal .modal-footer {
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-section {
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-section h4 {
    color: #00a2ff;
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.checkbox-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Script Control Buttons */
.script-control-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.script-control-buttons .btn-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.script-control-buttons .btn-success:hover {
    background: linear-gradient(135deg, #229954, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.script-control-buttons .btn-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.script-control-buttons .btn-warning:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

/* Responsive Design for Script Management */
@media (max-width: 768px) {
    .script-nav-buttons {
        flex-direction: column;
    }
    
    .script-nav-btn {
        justify-content: center;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .categories-grid,
    .items-grid {
        grid-template-columns: 1fr;
    }
    
    .subscriptions-grid {
        grid-template-columns: 1fr;
    }
    
    .large-modal {
        width: 95vw;
        max-width: none;
    }
    
    .item-pricing {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .checkbox-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Subscription Monitoring Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-height: 70px;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.stat-icon.active {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.stat-icon.warning {
    background: linear-gradient(135deg, #FF9800, #f57c00);
}

.stat-icon.expired {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

.stat-icon.auto-renew {
    background: linear-gradient(135deg, #2196F3, #1976d2);
}

.stat-info h3 {
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0;
    color: #fff;
    line-height: 1.2;
}

.stat-info p {
    margin: 0.2rem 0 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    line-height: 1.1;
}

.monitoring-section {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.8rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    max-width: 100%;
    overflow: hidden;
}

.monitoring-section h3 {
    color: #fff;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.1rem;
}

.monitoring-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.monitoring-table th,
.monitoring-table td {
    padding: 0.5rem 0.6rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.85rem;
}

.monitoring-table th {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
}

.monitoring-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.days-remaining {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.days-remaining.critical {
    background: #f44336;
    color: white;
}

.days-remaining.warning {
    background: #FF9800;
    color: white;
}

.days-remaining.normal {
    background: #4CAF50;
    color: white;
}

.auto-renew-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.auto-renew-badge.enabled {
    background: #4CAF50;
    color: white;
}

.auto-renew-badge.disabled {
    background: #757575;
    color: white;
}

.log-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.log-filters {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1rem;
    align-items: center;
}

.log-filters select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.5rem;
    color: #fff;
    font-size: 0.9rem;
}

.log-filters select option {
    background: #333;
    color: #fff;
}

.log-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
}

.log-entry {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.log-entry.info {
    border-left: 3px solid #2196F3;
}

.log-entry.warning {
    border-left: 3px solid #FF9800;
}

.log-entry.error {
    border-left: 3px solid #f44336;
}

.log-timestamp {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.log-message {
    color: #fff;
    margin-top: 0.25rem;
}

/* Responsive adjustments for monitoring */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .monitoring-table {
        font-size: 0.8rem;
        min-width: 600px;
    }
    
    .monitoring-table th,
    .monitoring-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .stats-grid {
         grid-template-columns: repeat(2, 1fr);
         gap: 0.6rem;
     }
     
     .stat-card {
         padding: 0.6rem;
         min-height: 60px;
     }
     
     .stat-icon {
         width: 35px;
         height: 35px;
         font-size: 1rem;
     }
     
     .stat-info h3 {
         font-size: 1.2rem;
     }
     
     .stat-info p {
         font-size: 0.7rem;
     }
     
     .monitoring-section {
         padding: 0.6rem;
     }
     
     .content-header {
         margin-bottom: 10px;
     }
     
     .content-header h2 {
         font-size: 16px;
     }
    
    .log-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .log-filters select {
         width: 100%;
     }
 }
 
 /* Medium screens */
  @media (max-width: 1024px) {
      .stats-grid {
          grid-template-columns: repeat(3, 1fr);
          gap: 0.7rem;
      }
      
      .dashboard {
          max-width: 100%;
          margin: 10px;
      }
      
      .tab-content {
          padding: 15px;
      }
      
      #subscription-monitoring.tab-content {
          padding: 12px;
      }
  }
  
  /* Extra small screens */
   @media (max-width: 480px) {
      .stats-grid {
          grid-template-columns: 1fr;
          gap: 0.5rem;
      }
      
      .stat-card {
          padding: 0.6rem;
          min-height: 50px;
      }
      
      .stat-icon {
          width: 30px;
          height: 30px;
          font-size: 0.9rem;
      }
      
      .stat-info h3 {
          font-size: 1rem;
      }
      
      .stat-info p {
          font-size: 0.65rem;
      }
      
      .monitoring-table {
          min-width: 350px;
          font-size: 0.7rem;
      }
      
      .monitoring-table th,
      .monitoring-table td {
          padding: 0.3rem 0.4rem;
          font-size: 0.7rem;
      }
      
      .header-actions {
          width: 100%;
          justify-content: center;
      }
      
      .content-header {
          flex-direction: column;
          text-align: center;
          margin-bottom: 8px;
      }
      
      .content-header h2 {
          font-size: 14px;
      }
      
      .monitoring-section {
          padding: 0.5rem;
      }
      
      #subscription-monitoring.tab-content {
          padding: 10px;
      }
  }

/* User Page Specific Styles */
.license-details {
    text-align: left;
}

.license-details h3 {
    color: #4CAF50;
    margin-bottom: 15px;
}

.license-details p {
    margin: 8px 0;
    line-height: 1.5;
}

.license-details strong {
    color: #333;
}

/* Code Editor Styles */
.editor-container {
    margin-top: 20px;
}

.editor-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.editor-controls select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

#codeEditor {
    width: 100%;
    height: 400px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    background: #f8f9fa;
}

/* Obfuscator Styles */
.obfuscator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.obfuscator-input, .obfuscator-output {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.obfuscator-input h3, .obfuscator-output h3 {
    margin-top: 0;
    color: #333;
}

#originalCode, #obfuscatedCode {
    width: 100%;
    height: 300px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

.obfuscator-options {
    margin: 15px 0;
}

.obfuscator-options label {
    display: block;
    margin: 8px 0;
    cursor: pointer;
}

.obfuscator-options input[type="checkbox"] {
    margin-right: 8px;
}

/* Log Styles */
.log-filters {
    display: flex;
    gap: 15px;
    align-items: center;
}

.log-filters select, .log-filters input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.logs-container {
    margin-top: 20px;
}

.log-entry {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.log-time {
    font-size: 12px;
    color: #666;
    min-width: 130px;
}

.log-type {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    min-width: 80px;
    text-align: center;
}

.log-type.login {
    background: #e3f2fd;
    color: #1976d2;
}

.log-type.license {
    background: #e8f5e8;
    color: #388e3c;
}

.log-type.code {
    background: #fff3e0;
    color: #f57c00;
}

.log-type.obfuscator {
    background: #fce4ec;
    color: #c2185b;
}

.log-message {
    flex: 1;
    color: #333;
}

/* Script Shop Styles */
.shop-filters {
    display: flex;
    gap: 15px;
    align-items: center;
}

.scripts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.script-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.script-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.script-card h3 {
    margin-top: 0;
    color: #333;
}

.script-card p {
    color: #666;
    margin: 10px 0;
}

.script-price {
    font-size: 18px;
    font-weight: bold;
    color: #4CAF50;
    margin: 15px 0;
}

/* Subscriptions Container */
.subscriptions-container {
    padding: 20px;
}

.loading-message, .error-message, .empty-message {
    text-align: center;
    padding: 40px 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.loading-message {
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.3);
    color: #00a2ff;
}

.loading-message i {
    font-size: 24px;
    margin-bottom: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.empty-message {
    background: rgba(108, 117, 125, 0.1);
    border: 1px solid rgba(108, 117, 125, 0.3);
    color: #6c757d;
}

.empty-message h3 {
    margin: 10px 0;
    color: #ffffff;
}

.empty-message .btn {
    margin-top: 15px;
}

/* Subscriptions Grid */
.subscriptions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.subscription-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(0, 162, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.subscription-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 162, 255, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.subscription-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 162, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 162, 255, 0.2);
}

.subscription-card:hover::before {
    opacity: 1;
}

.subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.subscription-header h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    flex: 1;
    margin-right: 15px;
}

.subscription-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.subscription-status.active {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.subscription-status.lifetime {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.subscription-status.expired {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.subscription-info {
    position: relative;
    z-index: 1;
}

.subscription-info .description {
    color: #b8c5d1;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.subscription-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #8892b0;
}

.detail-item i {
    width: 16px;
    color: #00a2ff;
    flex-shrink: 0;
}

.detail-item span {
    color: #ccd6f6;
}

.subscription-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.subscription-actions .btn {
    flex: 1;
    min-width: 100px;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.subscription-actions .btn-primary {
    background: linear-gradient(135deg, #00a2ff 0%, #0066cc 100%);
    color: white;
}

.subscription-actions .btn-primary:hover {
    background: linear-gradient(135deg, #0088dd 0%, #0055bb 100%);
    transform: translateY(-2px);
}

.subscription-actions .btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.subscription-actions .btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #3d4043 100%);
    transform: translateY(-2px);
}

.subscription-actions .btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

.subscription-actions .btn-info:hover {
    background: linear-gradient(135deg, #148a9c 0%, #0f6674 100%);
    transform: translateY(-2px);
}

/* Responsive Design for User Page */
@media (max-width: 768px) {
    .obfuscator-container {
        grid-template-columns: 1fr;
    }
    
    .scripts-grid {
        grid-template-columns: 1fr;
    }
    
    .subscriptions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .subscription-card {
        padding: 15px;
    }
    
    .subscription-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .subscription-header h3 {
        margin-right: 0;
    }
    
    .subscription-actions {
        flex-direction: column;
    }
    
    .subscription-actions .btn {
        flex: none;
        width: 100%;
    }
    
    .log-entry {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .log-time, .log-type {
        min-width: auto;
    }
    
    .editor-controls {
        flex-wrap: wrap;
    }
    
    .shop-filters {
        flex-direction: column;
        align-items: stretch;
    }
}