/* Root variables for consistent theming */
:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --accent-primary: #4a90e2;
    --accent-success: #5cb85c;
    --accent-danger: #d9534f;
    --accent-warning: #f0ad4e;
    --border-color: #444444;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(45, 45, 45, 0.7);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(74, 144, 226, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(92, 184, 92, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(74, 144, 226, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-20px, -20px); }
    66% { transform: translate(20px, -10px); }
}

/* Navigation */
.navbar {
    background-color: var(--bg-secondary) !important;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    box-shadow: 0 2px 20px var(--shadow-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary) !important;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: translateX(5px);
}

.navbar-brand i {
    margin-right: 0.5rem;
    animation: maskFloat 3s ease-in-out infinite;
}

@keyframes maskFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.nav-link {
    color: var(--text-secondary) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary) !important;
    transform: translateY(-2px);
}

.nav-link:hover::before {
    width: 100%;
}

.dropdown-menu-dark {
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    animation: dropdownFade 0.3s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Content */
.main-content {
    padding-top: 100px;
    padding-bottom: 60px;
    flex: 1;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cards with Glassmorphism */
.card {
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: cardSlide 0.5s ease;
    overflow: hidden;
}

@keyframes cardSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(74, 144, 226, 0.2);
    border-color: rgba(74, 144, 226, 0.3);
}

.card-header {
    background-color: rgba(58, 58, 58, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-weight: 600;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.card-header::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.card:hover .card-header::after {
    left: 100%;
}

.card-body {
    color: var(--text-primary);
    padding: 1.5rem;
}

/* Forms with Modern Style */
.form-control,
.form-select {
    background-color: rgba(58, 58, 58, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(58, 58, 58, 0.8);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25),
                0 0 20px rgba(74, 144, 226, 0.2);
    transform: translateY(-2px);
}

.form-label {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-control:focus ~ .form-label,
.form-select:focus ~ .form-label {
    color: var(--accent-primary);
}

/* Premium Buttons */
.btn {
    border-radius: 8px;
    padding: 0.625rem 1.75rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #3a7bc8);
    border: none;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(74, 144, 226, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-success), #4cae4c);
    border: none;
    box-shadow: 0 4px 15px rgba(92, 184, 92, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(92, 184, 92, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--accent-danger), #c9302c);
    border: none;
    box-shadow: 0 4px 15px rgba(217, 83, 79, 0.3);
}

.btn-secondary {
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: rgba(74, 74, 74, 0.7);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.2);
}

/* Tables with Modern Style */
.table {
    color: var(--text-primary);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.table-dark {
    background-color: transparent;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(58, 58, 58, 0.3);
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: rgba(74, 144, 226, 0.1);
    transform: scale(1.01);
}

/* Badges with Glow Effect */
.badge {
    padding: 0.35rem 0.75rem;
    font-weight: 500;
    border-radius: 6px;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 currentColor;
    }
    50% {
        box-shadow: 0 0 10px 2px currentColor;
    }
}

/* Alerts with Slide Animation */
.alert {
    border: none;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    animation: alertSlide 0.4s ease;
}

@keyframes alertSlide {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-info {
    background-color: rgba(74, 144, 226, 0.2);
    color: #6ba7ff;
    border-left: 4px solid var(--accent-primary);
}

.alert-success {
    background-color: rgba(92, 184, 92, 0.2);
    color: #7ed57e;
    border-left: 4px solid var(--accent-success);
}

.alert-warning {
    background-color: rgba(240, 173, 78, 0.2);
    color: #f5c57a;
    border-left: 4px solid var(--accent-warning);
}

.alert-danger {
    background-color: rgba(217, 83, 79, 0.2);
    color: #e57371;
    border-left: 4px solid var(--accent-danger);
}

/* Footer */
.footer {
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* License Cards with Premium Feel */
.license-card {
    background: linear-gradient(135deg, rgba(58, 58, 58, 0.7), rgba(45, 45, 45, 0.7));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.license-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.license-card:hover::before {
    opacity: 1;
}

.license-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(74, 144, 226, 0.3);
    border-color: rgba(74, 144, 226, 0.5);
}

.license-type {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(74, 144, 226, 0.8);
    }
}

.license-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    background: linear-gradient(45deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.license-features {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.license-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    padding-left: 1.5rem;
    position: relative;
}

.license-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-success);
    font-weight: bold;
    animation: checkBounce 0.5s ease;
}

@keyframes checkBounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.license-features li:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

.license-features li i {
    color: var(--accent-success);
    margin-right: 0.5rem;
}

/* Dashboard Stats with Animation */
.stat-card {
    background: linear-gradient(135deg, rgba(58, 58, 58, 0.7), rgba(45, 45, 45, 0.7));
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-success), var(--accent-primary));
    border-radius: 12px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    animation: countUp 1s ease;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* USDT Wallet Address with Copy Animation */
.wallet-address {
    background-color: var(--bg-primary);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    word-break: break-all;
    margin: 1rem 0;
    transition: all 0.3s ease;
    position: relative;
}

.wallet-address:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.2);
}

/* Copy Button */
.copy-btn {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    color: var(--accent-primary);
    transform: scale(1.1);
}

.copy-btn:active {
    transform: scale(0.95);
}

/* Transaction Status */
.status-pending {
    color: var(--accent-warning);
    animation: statusPulse 1.5s ease-in-out infinite;
}

.status-confirmed {
    color: var(--accent-success);
}

.status-rejected {
    color: var(--accent-danger);
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Progress Bar Animation */
.progress {
    background-color: rgba(58, 58, 58, 0.5);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-success));
    animation: progressStripe 1s linear infinite;
    position: relative;
}

.progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 30px 30px;
    animation: progressMove 1s linear infinite;
}

@keyframes progressMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 30px 30px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        padding-top: 80px;
    }
    
    .license-card {
        margin-bottom: 1rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* Loading Spinner with Modern Style */
.spinner-border {
    color: var(--accent-primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--bg-tertiary), var(--accent-primary));
    border-radius: 5px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--accent-primary), var(--bg-tertiary));
}

/* Page Loader Animation */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 0.5s ease 1s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Input Focus Animation */
.form-control,
.form-select {
    position: relative;
}

.form-control::placeholder {
    transition: all 0.3s ease;
}

.form-control:focus::placeholder {
    opacity: 0.5;
    transform: translateX(5px);
}

/* Hover Effects for Interactive Elements */
a {
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

/* Modal Animations */
.modal {
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
} 