/* Custom Premium CSS for Alliance Gift Code Manager */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #080b11;
    --bg-secondary: #0f1420;
    --bg-tertiary: #171f32;
    --accent-glow: rgba(0, 242, 254, 0.15);
    
    --text-primary: #f3f4f6;
    --text-muted: #9ca3af;
    
    --primary-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --secondary-gradient: linear-gradient(135deg, #b224ef 0%, #7579ff 100%);
    --danger-gradient: linear-gradient(135deg, #ff5e62 0%, #ff9966 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    
    --border-glass: rgba(255, 255, 255, 0.08);
    --bg-glass: rgba(15, 20, 32, 0.7);
    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6, .brand-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: var(--shadow-premium);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px 0 rgba(0, 242, 254, 0.15);
    border-color: rgba(0, 242, 254, 0.3);
}

/* Buttons */
.btn-grad {
    background-image: var(--primary-gradient);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    transition: all 0.3s ease;
}

.btn-grad:hover {
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.6);
    color: #fff;
    transform: scale(1.02);
}

.btn-grad-secondary {
    background-image: var(--secondary-gradient);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    transition: all 0.3s ease;
}

.btn-grad-secondary:hover {
    box-shadow: 0 0 15px rgba(178, 36, 239, 0.6);
    color: #fff;
    transform: scale(1.02);
}

/* Navbar */
.navbar-custom {
    background: rgba(8, 11, 17, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    padding: 15px 0;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: #00f2fe !important;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

/* Inputs & Forms */
.form-control-custom {
    background-color: rgba(23, 31, 50, 0.6);
    border: 1px solid var(--border-glass);
    color: var(--text-primary) !important;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    background-color: var(--bg-tertiary);
    border-color: #00f2fe;
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.25);
    outline: none;
}

.form-label {
    color: var(--text-muted);
    font-weight: 500;
}

/* Tables */
.table-custom {
    border-collapse: separate;
    border-spacing: 0 8px;
}

.table-custom tr {
    background-color: rgba(23, 31, 50, 0.4);
    transition: background-color 0.3s ease;
}

.table-custom tr:hover {
    background-color: rgba(23, 31, 50, 0.8);
}

.table-custom th {
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    padding: 12px;
}

.table-custom td {
    border: none;
    padding: 16px 12px;
    vertical-align: middle;
}

.table-custom tr td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.table-custom tr td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Badges */
.badge-success {
    background: var(--success-gradient);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
}

.badge-danger {
    background: var(--danger-gradient);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
}

/* Log Entries terminal style */
.terminal-box {
    background: #04060b;
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 18px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #38ef7d;
}

.terminal-line {
    margin-bottom: 6px;
    line-height: 1.4;
}

.terminal-line.error {
    color: #ff5e62;
}

.terminal-line.info {
    color: #00f2fe;
}

/* Dashboard Metrics Widget */
.metric-card {
    border-left: 4px solid #00f2fe;
}

.metric-card.success {
    border-left-color: #38ef7d;
}

.metric-card.failed {
    border-left-color: #ff5e62;
}

/* Verification Code Modal Styling */
.modal-content-custom {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    color: var(--text-primary);
}

.modal-header-custom {
    border-bottom: 1px solid var(--border-glass);
}

.modal-footer-custom {
    border-top: 1px solid var(--border-glass);
}

/* Footer layout custom styling */
footer {
    margin-top: auto;
    border-top: 1px solid var(--border-glass);
    background-color: var(--bg-secondary);
    padding: 24px 0;
}

footer i.fa-heart {
    animation: heart-beat 1.2s infinite;
}

@keyframes heart-beat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}
