/* ===========================
   INVESTECH ENHANCED DESIGN SYSTEM
   Add this to your wwwroot/css/ folder
   =========================== */

:root {
    /* Enhanced Color System */
    --primary-blue: #0040ff;
    --primary-green: #00d974;
    --dark-blue: #0030cc;
    --accent-purple: #667eea;
    --accent-indigo: #764ba2;
    --primary-gradient: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);

    /* Extended Surface Colors */
    --surface-white: #ffffff;
    --surface-gray-50: #f8fafc;
    --surface-gray-100: #f1f5f9;
    --surface-gray-200: #e2e8f0;
    --surface-gray-300: #cbd5e1;
    --surface-gray-400: #94a3b8;

    /* Enhanced Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --text-muted: #94a3b8;
    --text-white: #ffffff;

    /* Status Colors */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;

    /* Enhanced Shadow System */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    --shadow-glow-blue: 0 0 20px rgba(0, 64, 255, 0.3);
    --shadow-glow-green: 0 0 20px rgba(0, 217, 116, 0.3);

    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    /* Border Radius Scale */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Transition System */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-modal: 1050;
    --z-tooltip: 1070;
    --z-overlay: 1040;
}

/* ===========================
   ENHANCED CARD SYSTEM
   =========================== */

.investech-card {
    background: var(--surface-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--surface-gray-200);
    transition: all var(--transition-base);
    overflow: hidden;
    position: relative;
}

.investech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.investech-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--surface-gray-300);
}

.investech-card:hover::before {
    opacity: 1;
}

/* Glow Effect Card */
.investech-card-glow {
    position: relative;
    overflow: hidden;
}

.investech-card-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
    pointer-events: none;
}

.investech-card-glow:hover::after {
    left: 100%;
}

/* Floating Effect */
.investech-card-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ===========================
   ENHANCED BUTTON SYSTEM
   =========================== */

.btn-investech {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.btn-investech::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-investech:hover::before {
    left: 100%;
}

.btn-investech:active {
    transform: scale(0.98);
}

/* Primary Button */
.btn-investech-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(0, 64, 255, 0.3);
}

.btn-investech-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 64, 255, 0.4);
    background: linear-gradient(135deg, var(--dark-blue), var(--accent-indigo));
    color: var(--text-white);
}

/* Secondary Button */
.btn-investech-secondary {
    background: var(--surface-white);
    color: var(--text-primary);
    border: 2px solid var(--surface-gray-200);
    box-shadow: var(--shadow-sm);
}

.btn-investech-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

/* Success Button */
.btn-investech-success {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-investech-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    color: var(--text-white);
}

/* Danger Button */
.btn-investech-danger {
    background: linear-gradient(135deg, var(--error-color), #dc2626);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-investech-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
    color: var(--text-white);
}

/* ===========================
   ENHANCED FORM SYSTEM
   =========================== */

.form-investech {
    position: relative;
}

.form-input-investech {
    width: 100%;
    padding: var(--space-4) var(--space-4);
    border: 2px solid var(--surface-gray-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    background: var(--surface-white);
    transition: all var(--transition-base);
    outline: none;
    font-family: inherit;
}

.form-input-investech:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 64, 255, 0.1);
    transform: scale(1.02);
}

.form-input-investech:invalid {
    border-color: var(--error-color);
}

.form-input-investech:valid {
    border-color: var(--success-color);
}

.form-label-investech {
    display: block;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
    font-size: 0.9rem;
}

.form-select-investech {
    width: 100%;
    padding: var(--space-4) var(--space-4);
    border: 2px solid var(--surface-gray-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    background: var(--surface-white);
    transition: all var(--transition-base);
    outline: none;
    cursor: pointer;
    font-family: inherit;
}

.form-select-investech:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 64, 255, 0.1);
}

/* ===========================
   ENHANCED NAVIGATION
   =========================== */

.nav-investech {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--surface-gray-200);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: var(--z-dropdown);
}

.nav-link-investech {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.nav-link-investech::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.nav-link-investech:hover {
    color: var(--primary-blue);
    background: rgba(0, 64, 255, 0.05);
    text-decoration: none;
}

.nav-link-investech:hover::before {
    width: 80%;
}

.nav-link-investech.active {
    color: var(--primary-blue);
    background: rgba(0, 64, 255, 0.1);
}

.nav-link-investech.active::before {
    width: 100%;
}

/* ===========================
   ENHANCED MODALS
   =========================== */

.modal-investech .modal-content {
    border: none;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
}

.modal-investech .modal-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
    color: var(--text-white);
    border-bottom: none;
    padding: var(--space-6);
}

.modal-investech .modal-body {
    padding: var(--space-6);
}

.modal-investech .modal-footer {
    padding: var(--space-6);
    border-top: 1px solid var(--surface-gray-200);
}

.modal-investech .modal-dialog {
    margin-left: auto;
    margin-right: auto;
}

/* Modal Animation */
.modal-investech.fade .modal-dialog {
    transform: scale(0.9) translateY(-20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-investech.show .modal-dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* ===========================
   ENHANCED TABLES
   =========================== */

.table-investech {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-investech thead {
    background: linear-gradient(135deg, var(--surface-gray-50), var(--surface-gray-100));
}

.table-investech th {
    padding: var(--space-5) var(--space-4);
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--surface-gray-200);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table-investech td {
    padding: var(--space-4);
    border-bottom: 1px solid var(--surface-gray-200);
    transition: background-color var(--transition-fast);
}

.table-investech tbody tr:hover {
    background: var(--surface-gray-50);
}

.table-investech tbody tr:last-child td {
    border-bottom: none;
}

/* ===========================
   ENHANCED ALERTS
   =========================== */

.alert-investech {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    border: none;
    margin-bottom: var(--space-4);
    position: relative;
    overflow: hidden;
}

.alert-investech::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.alert-investech-success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.alert-investech-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
    border-left: 4px solid var(--warning-color);
}

.alert-investech-error {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border-left: 4px solid var(--error-color);
}

.alert-investech-info {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
    border-left: 4px solid var(--info-color);
}

/* ===========================
   ENHANCED LOADING STATES
   =========================== */

.loading-spinner-investech {
    width: 40px;
    height: 40px;
    border: 4px solid var(--surface-gray-200);
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.skeleton-investech {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===========================
   ENHANCED BADGES
   =========================== */

.badge-investech {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-investech-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
    color: var(--text-white);
}

.badge-investech-success {
    background: var(--success-color);
    color: var(--text-white);
}

.badge-investech-warning {
    background: var(--warning-color);
    color: var(--text-white);
}

.badge-investech-danger {
    background: var(--error-color);
    color: var(--text-white);
}

.badge-investech-secondary {
    background: var(--surface-gray-200);
    color: var(--text-secondary);
}

/* ===========================
   ENHANCED HERO SECTIONS
   =========================== */

.hero-investech {
    position: relative;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    padding: var(--space-20) 0;
    overflow: hidden;
    color: var(--text-white);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-investech::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-investech-content {
    position: relative;
    z-index: 2;
}

.hero-investech-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

.hero-investech-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: var(--space-8);
    max-width: 600px;
}

/* Animated particles for hero */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float-particle 6s infinite linear;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* ===========================
   UTILITY CLASSES
   =========================== */

.text-investech-primary { color: var(--primary-blue); }
.text-investech-secondary { color: var(--text-secondary); }
.text-investech-muted { color: var(--text-muted); }

.bg-investech-primary { background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple)); }
.bg-investech-secondary { background: var(--surface-gray-100); }
.bg-investech-success { background: var(--success-color); }
.bg-investech-warning { background: var(--warning-color); }
.bg-investech-danger { background: var(--error-color); }

.shadow-investech-sm { box-shadow: var(--shadow-sm); }
.shadow-investech-md { box-shadow: var(--shadow-md); }
.shadow-investech-lg { box-shadow: var(--shadow-lg); }
.shadow-investech-xl { box-shadow: var(--shadow-xl); }

.rounded-investech-sm { border-radius: var(--radius-sm); }
.rounded-investech-md { border-radius: var(--radius-md); }
.rounded-investech-lg { border-radius: var(--radius-lg); }
.rounded-investech-xl { border-radius: var(--radius-xl); }

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 768px) {
    .investech-card:hover {
        transform: translateY(-4px);
    }

    .btn-investech:hover {
        transform: translateY(-1px);
    }

    .hero-investech {
        padding: var(--space-16) 0;
        min-height: 50vh;
    }

    .hero-investech-title {
        font-size: 2.5rem;
    }

    .hero-investech-subtitle {
        font-size: 1.1rem;
    }
}

/* ===========================
   DARK MODE SUPPORT
   =========================== */

/* Dashboard modal enhancements */
@media (min-width: 1200px) {
    .modal-xxl {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .modal-xxl {
        max-width: 1320px;
    }
}

/* ===========================
   FILE UPLOAD COMPONENT
   =========================== */
.file-upload-container {
    position: relative;
}

.file-upload-container .invalid-feedback {
    display: none;
    margin-top: 0.25rem;
}

/* removed upload preview styles */


