/* TickMe - Main Global Styles - Futuristic Design */
:root {
    --bg-primary: #00d4ff;
    --primary-dark: #00a8cc;
    --bg-secondary: #7b2cbf;
    --bg-tertiary: #334155;
    --success: #06d6a0;
    --warning: #ffd60a;
    --danger: #ef476f;
    --bg-dark: #0a0e27;
    --bg-card: #141b3d;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --border: #1e2742;
    
    /* Text Colors */
    --text-light: #f8fafc;
    --text-medium: #cbd5e1;
    --text-dark: #64748b;
    
    /* Icon Color */
    --icon-color: #fff;
    
    /* Accent Colors - Vibrant Gradients */
    --accent-primary: #667eea;
    --accent-secondary: #667eea;
    --accent-tertiary: #ffffff;
    
    /* Primary Colors for Buttons */
    --primary: #00d4ff;
    --primary-dark: #00a8cc;
    
    /* Alias for compatibility */
    --accent-primary: var(--primary);
    --accent-secondary: var(--primary-dark);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-hover: rgba(255, 255, 255, 0.12);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.3);
    --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.4);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 27px;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1f3a 100%);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 20px;
    font-size: 18px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

#app {
    position: relative;
    z-index: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--accent-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
/*  padding: var(--spacing-md) var(--spacing-xl);*/
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: white;
}

.btn-secondary:hover {
    background: var(--glass-hover);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

/* Icons - Global currentColor */
.icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    stroke: var(--icon-color);
}

.icon-large {
    width: 48px;
    height: 48px;
    fill: currentColor;
}

svg.icon,
svg.icon use {
    fill: currentColor;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.screen {
    min-height: 100vh;
}

/* Loading Animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinning {
    animation: spin 2s linear infinite;
}


/* Selection */
::selection {
    background: var(--accent-primary);
    color: white;
}

/* Focus Styles */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Form Elements */
input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: var(--spacing-xl);
    right: var(--spacing-xl);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: white;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    transform: translateY(100px);
    opacity: 0;
    transition: all var(--transition-base);
    z-index: 10000;
    box-sizing: border-box;
    max-width: min(400px, calc(100vw - (2 * var(--spacing-xl))));
    height: fit-content;
    overflow-y: auto;
    overflow-wrap: break-word;
    word-break: normal;
    white-space: normal;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    border-left: 4px solid #10b981;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-info {
    border-left: 4px solid var(--accent-primary);
}

/* Flex text handling for icon + text layouts */
.toast .toast-text {
  min-width: 0;
  overflow-wrap: break-word;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }
    
    .toast {
        bottom: var(--spacing-lg);
        right: var(--spacing-lg);
        left: var(--spacing-lg);
        height: fit-content;
    }
}

