:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --success-color: #059669;
    --info-color: #0ea5e9;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --border-radius: 1rem;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

.bg-gradient-primary {
    background-color: #0F172A !important;
    background: linear-gradient(135deg, #0F172A 0%, #1e293b 100%) !important;
}


/* Navigation */
.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Hero Section */
.hero-section {    
    background-image: #0F172A;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
	pointer-events: none;   /* <— lets clicks pass through */
}

.hero-section .container {
    position: relative;
    z-index: 2;    
}

.hero-image-container {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Feature Icons */
.feature-icon {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}



.form-check-input {
  border-color: var(--bs-primary) !important;
}

.fs-7 {
  font-size: 0.75rem !important;
}





/* Buttons */


/* Dashboard Styles */
.dashboard-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.stats-card {
    text-align: center;
    padding: 2rem 1rem;
}

.stats-card .display-4 {
    color: var(--primary-color);
    font-weight: 700;
}

.stats-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Asset Categories */
.asset-category {
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.asset-category:hover {
    border-color: var(--primary-color);
    background-color: #f8fafc;
    transform: translateY(-2px);
}

.asset-category i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.asset-category.banking i { color: #059669; }
.asset-category.social i { color: #3b82f6; }
.asset-category.crypto i { color: #f59e0b; }
.asset-category.subscriptions i { color: #8b5cf6; }
.asset-category.other i { color: #6b7280; }

/* Beneficiary Cards */
.beneficiary-card {
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    background: white;
    transition: all 0.3s ease;
}

.beneficiary-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--box-shadow);
    transform: translateY(-2px);
}

.beneficiary-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Forms */
/*
.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 1px solid #d1d5db;
    padding: 0.75rem 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}
    */


.form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Modals */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e2e8f0;
    padding: 1.5rem;
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Progress Bars */
.progress {
    height: 0.75rem;
    border-radius: var(--border-radius);
    background-color: #e2e8f0;
}

.progress-bar {
    border-radius: var(--border-radius);
}

/* Tables */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table thead th {
    border-bottom: 2px solid #e2e8f0;
    background-color: #f8fafc;
    font-weight: 600;
    color: var(--dark-color);
}

.table tbody tr:hover {
    background-color: #f8fafc;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Security Tier Indicators */
.security-tier {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.security-tier-user-held {
    background-color: #dbeafe;
    color: #1e40af;
}

.security-tier-shared {
    background-color: #fef3c7;
    color: #92400e;
}

.security-tier-timelock {
    background-color: #e0e7ff;
    color: #3730a3;
}

.security-tier-escrow {
    background-color: #f3f4f6;
    color: #374151;
}

/* Responsive Utilities */
@media (max-width: 768px) {

    
    .hero-features {
        margin-top: 2rem;
    }
    
    .dashboard-card {
        padding: 1rem;
    }
    
    .stats-card {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 576px) {

    
    .feature-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Dark Mode Support - Class-based approach */
body.dark-mode {
    --bg-color: #0f172a;
    --text-color: #f1f5f9;
    --card-bg: #1e293b;
    --border-color: #334155;
    background-color: var(--bg-color);
    color: var(--text-color);
}

body.dark-mode .table thead th {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

/* Uncomment when ready to apply dark mode to cards and forms */
/*
body.dark-mode .card,
body.dark-mode .dashboard-card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

body.dark-mode .form-control,
body.dark-mode .form-select {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}
*/

/* Debugging indicator - remove after testing */
body::before {
    content: "Light Mode Active";
    position: fixed;
    top: 0;
    right: 0;
    background: #4ade80;
    color: #000;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    z-index: 99999;
    border-bottom-left-radius: 5px;
}

body.dark-mode::before {
    content: "Dark Mode Active";
    background: #f59e0b;
    color: #000;
}

/* Animation utilities */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Utility classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: var(--box-shadow);
}

.border-radius-custom {
    border-radius: var(--border-radius);
}

/* Reduce spacing on small screens */
@media (max-width: 767.98px) {
    .card {
        margin-left: 0.25rem !important;
        margin-right: 0.25rem !important;
    }
    
    /* Also reduce container padding on mobile */
    .container, .container-fluid {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    /* Reduce column padding */
    [class*="col-"] {
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }
}

/* Remove card styling completely on xs screens */
@media (max-width: 575.98px) {
    .card-no-xs {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }
}