/**
 * PHP QR Code Tracking System (bplusdtrack)
 * Premium Stylesheet
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    
    --primary-gradient-start: #6366f1;
    --primary-gradient-end: #4f46e5;
    
    --accent-gradient-start: #14b8a6;
    --accent-gradient-end: #0d9488;
    
    --danger-gradient-start: #ef4444;
    --danger-gradient-end: #dc2626;

    --btn-shadow-color: rgba(99, 102, 241, 0.4);
    --accent-shadow-color: rgba(20, 184, 166, 0.4);
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--text-primary) !important;
}

/* Gradients */
.bg-login-gradient {
    background: linear-gradient(135deg, #090d16 0%, #0f172a 50%, #1e1b4b 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.text-gradient {
    background: linear-gradient(135deg, #a5b4fc 0%, #818cf8 50%, #2dd4bf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism Cards */
.card-custom {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--bg-card-border) !important;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-custom:hover {
    border-color: rgba(99, 102, 241, 0.25) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5) !important;
}

/* Brand Icon */
.brand-icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(20, 184, 166, 0.2) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    font-size: 28px;
    color: #818cf8;
    box-shadow: 0 0 20px -5px var(--btn-shadow-color);
}

/* Inputs */
.bg-dark-input {
    background-color: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--text-primary) !important;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}

.bg-dark-input:focus {
    background-color: rgba(15, 23, 42, 0.8) !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
    outline: none;
}

.bg-dark-input::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

/* Buttons */
.btn-primary-gradient {
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
    border: none;
    color: white;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-primary-gradient:hover, .btn-primary-gradient:focus {
    background: linear-gradient(135deg, #7073f3 0%, #5d55ec 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px 0 var(--btn-shadow-color);
}

.btn-primary-gradient:active {
    transform: translateY(1px);
}

.btn-success-gradient {
    background: linear-gradient(135deg, var(--accent-gradient-start) 0%, var(--accent-gradient-end) 100%);
    border: none;
    color: white;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-success-gradient:hover, .btn-success-gradient:focus {
    background: linear-gradient(135deg, #2ae0cc 0%, #11ac9e 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px 0 var(--accent-shadow-color);
}

.btn-danger-gradient {
    background: linear-gradient(135deg, var(--danger-gradient-start) 0%, var(--danger-gradient-end) 100%);
    border: none;
    color: white;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-danger-gradient:hover, .btn-danger-gradient:focus {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px 0 rgba(239, 68, 68, 0.4);
}

/* Alerts */
.alert-custom-danger {
    background-color: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    color: #fca5a5 !important;
    border-radius: 12px;
}

/* Navbar */
.navbar-custom {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--bg-card-border);
}

/* Custom Table */
.table-custom {
    color: var(--text-primary) !important;
    vertical-align: middle;
}

.table-custom th {
    background-color: rgba(15, 23, 42, 0.4) !important;
    color: var(--text-secondary) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.08em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 14px 16px;
}

.table-custom td {
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 16px;
}

.table-custom tbody tr {
    transition: background-color 0.2s ease;
}

.table-custom tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

/* Floating Action Button */
.fab-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 1000;
    box-shadow: 0 8px 24px var(--accent-shadow-color);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-btn:hover {
    transform: rotate(90deg) scale(1.1);
}

/* Stats Cards */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-gradient-start), var(--primary-gradient-end));
}

.stat-card.accent::after {
    background: linear-gradient(to bottom, var(--accent-gradient-start), var(--accent-gradient-end));
}

.stat-icon {
    font-size: 32px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--primary-gradient-start);
}

.stat-card.accent .stat-icon {
    color: var(--accent-gradient-start);
}

/* Modal styling */
.modal-content-custom {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
}

.modal-header-custom {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 20px 24px !important;
}

.modal-footer-custom {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 16px 24px !important;
}

.modal-body-custom {
    padding: 24px !important;
}

/* Badges */
.badge-custom {
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
}

.badge-custom.bg-primary {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(79, 70, 229, 0.15) 100%) !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    color: #a5b4fc !important;
}

.badge-custom.bg-success {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.15) 0%, rgba(13, 148, 136, 0.15) 100%) !important;
    border: 1px solid rgba(20, 184, 166, 0.3) !important;
    color: #99f6e4 !important;
}

/* Custom links */
.link-custom {
    color: #818cf8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.link-custom:hover {
    color: #a5b4fc;
    text-decoration: underline;
}

/* Copy hash button click feedback scale */
.btn-copy {
    transition: transform 0.1s ease;
}
.btn-copy:active {
    transform: scale(0.9);
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wider {
    letter-spacing: 0.08em;
}
