/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');

:root {
    /* Premium Color Palette */
    --primary-color: #6C63FF;
    --primary-dark: #5a52d5;
    --secondary-color: #00D2FC;
    /* Cyan/Blue accent - Used for Desk+ in logo */
    --logo-accent: #00D2FC;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-light: #f8fafc;
    --text-gray: #94a3b8;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    /* Glassmorphism */
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Font */
    --font-main: 'Hind Siliguri', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    /* Disable tap highlight on Android */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* ================================================
   DISABLE TAP HIGHLIGHT & DRAG FOR ANDROID WEBVIEW
   ================================================ */

/* Disable blue tap highlight on all interactive elements */
a,
button,
input,
select,
textarea,
[role="button"],
[onclick],
.btn,
.nav-link,
.clickable,
.notification-item,
.sidebar a {
    -webkit-tap-highlight-color: transparent;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

/* Disable text selection and drag on navigation/menu items */
nav,
.sidebar,
.mobile-nav,
.btn,
button,
.nav-link,
.menu-item,
.notification-item,
a[href],
.clickable {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-drag: none;

}

/* Disable image and icon drag */
img,
svg,
i,
.fas,
.far,
.fab,
.fa,
[class^="fa-"],
[class*=" fa-"],
.icon,
picture,
canvas {
    -webkit-user-drag: none !important;
    -webkit-user-drag: none;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    pointer-events: auto;
}

/* Allow text selection in content areas */
.content,
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
p,
h1,
h2,
h3,
h4,
h5,
h6,
.stat-card h2,
.balance-amount {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Disable touch callout (long press menu) on links */
a {
    -webkit-touch-callout: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--glass-shadow);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: white;
    margin-bottom: 1rem;
}

.text-gradient {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Logo Styling - Consistent across all pages */
.logo {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.logo span {
    background: linear-gradient(135deg, #6C63FF, #00D2FC);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-gray);
    font-weight: 500;
}

.form-control {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}