/* ==========================================================================
   HJ MoneyGram - Modern Clean Design System
   Color Scheme: White background, subtle shadows, black text
   ========================================================================== */

:root {
    /* Primary Colors - Clean & Professional */
    --primary-50: #f0f4f8;
    --primary-100: #d9e6f2;
    --primary-200: #b3cce5;
    --primary-300: #8cb3d9;
    --primary-400: #6699cc;
    --primary-500: #4a7ba7;
    --primary-600: #3d6485;
    --primary-700: #2f4d64;
    --primary-800: #1f3342;
    --primary-900: #0f1921;
    --primary-950: #0c1450;

    /* Neutral Colors - Clean whites and grays */
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;

    /* Semantic Colors */
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #dbeafe;

    /* Shadows - Subtle and clean */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
}

/* ==========================================================================
   Card Components - Clean white cards with shadows
   ========================================================================== */

.card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    padding: 1.25rem 1.5rem;
    background: white;
    border-bottom: 1px solid var(--gray-200);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.card-body {
    padding: 1.5rem;
}

/* ==========================================================================
   Statistics Cards - Clean gradient-free design
   ========================================================================== */

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-700));
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.stat-card.blue::before { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.stat-card.green::before { background: linear-gradient(90deg, #10b981, #059669); }
.stat-card.yellow::before { background: linear-gradient(90deg, #f59e0b, #d97706); }
.stat-card.purple::before { background: linear-gradient(90deg, #8b5cf6, #7c3aed); }

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--gray-100);
    color: var(--gray-700);
}

.stat-card.blue .stat-icon { background: #dbeafe; color: #3b82f6; }
.stat-card.green .stat-icon { background: #d1fae5; color: #10b981; }
.stat-card.yellow .stat-icon { background: #fef3c7; color: #f59e0b; }
.stat-card.purple .stat-icon { background: #ede9fe; color: #8b5cf6; }

/* ==========================================================================
   Dashboard Statistics Cards - Clean Modern Design
   ========================================================================== */

.stats-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-950);
}

.stats-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.stats-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stats-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

/* ==========================================================================
   Buttons - Clean and modern
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-primary {
    background-color: #1e40af;
    color: white;
}

.btn-primary:hover {
    background-color: #1e3a8a;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.btn-success {
    background-color: #10b981;
    color: white;
}

.btn-success:hover {
    background-color: #059669;
}

.btn-danger {
    background-color: #ef4444;
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-warning {
    background-color: #f59e0b;
    color: white;
}

.btn-warning:hover {
    background-color: #d97706;
}

.btn-info {
    background-color: #3b82f6;
    color: white;
}

.btn-info:hover {
    background-color: #2563eb;
}

.btn-white {
    background-color: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-white:hover {
    background-color: #f9fafb;
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
}

/* ==========================================================================
   Forms - Clean input styling
   ========================================================================== */

.form-control {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--gray-900);
    background-color: white;
    background-clip: padding-box;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: var(--gray-900);
    background-color: white;
    border-color: var(--primary-500);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(74, 123, 167, 0.1);
}

.form-label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

/* ==========================================================================
   Tables - Clean table design
   ========================================================================== */

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: var(--gray-50);
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.875rem 1rem;
    border-bottom: 2px solid var(--gray-200);
}

.table tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-900);
    font-size: 0.875rem;
}

.table tbody tr:hover {
    background-color: var(--gray-50);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* ==========================================================================
   Badges - Clean badge styling
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 9999px;
    white-space: nowrap;
}

.bg-success {
    background-color: var(--success-light);
    color: var(--success);
}

.bg-warning {
    background-color: var(--warning-light);
    color: var(--warning);
}

.bg-danger {
    background-color: var(--danger-light);
    color: var(--danger);
}

.bg-info {
    background-color: var(--info-light);
    color: var(--info);
}

/* ==========================================================================
   Navigation Links - Clean nav styling
   ========================================================================== */

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-link:hover {
    background-color: var(--gray-100);
    color: var(--gray-900);
}

.nav-link.active,
.nav-link:active {
    background-color: var(--primary-50);
    color: var(--primary-950);
    font-weight: 600;
}

.nav-link i {
    margin-right: 0.75rem;
    font-size: 1.125rem;
    opacity: 0.8;
}

/* ==========================================================================
   Dropdown Menu - Clean dropdown styling
   ========================================================================== */

.dropdown-menu {
    position: absolute;
    right: 0;
    z-index: 1000;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
}

.dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.625rem 1rem;
    clear: both;
    font-weight: 400;
    color: var(--gray-700);
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

.dropdown-item:hover {
    color: var(--gray-900);
    background-color: var(--gray-100);
}

.dropdown-item.text-warning:hover {
    color: var(--warning);
    background-color: var(--warning-light);
}

.dropdown-item.text-danger:hover {
    color: var(--danger);
    background-color: var(--danger-light);
}

/* ==========================================================================
   Page Header - Clean page header styling
   ========================================================================== */

.page-header {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeInRight {
    animation: fadeInRight 0.3s ease-out;
}

/* Upload Progress Bar Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* Progress Bar Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.progress-shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Spinner Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.spinner {
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
}

/* Gradient Animation for Progress Bar */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.progress-gradient {
    background: linear-gradient(90deg, #3b82f6, #2563eb, #1d4ed8, #2563eb, #3b82f6);
    background-size: 200% 100%;
    animation: gradient-shift 2s ease infinite;
}

/* Scale Animation for Success/Error States */
@keyframes scale-in {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-scale-in {
    animation: scale-in 0.3s ease-out;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-in;
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */

@media (max-width: 767px) {
    .card-body {
        padding: 1rem;
    }
    
    .stats-card {
        padding: 1rem;
    }
    
    .page-header {
        padding: 1rem;
    }
}

/* ==========================================================================
   Avatar & Profile Components
   ========================================================================== */

.w-10 {
    width: 2.5rem;
}

.h-10 {
    height: 2.5rem;
}

.w-20 {
    width: 5rem;
}

.h-20 {
    height: 5rem;
}

.w-32 {
    width: 8rem;
}

.h-32 {
    height: 8rem;
}

.min-h-screen {
    min-height: 100vh;
}

.max-w-md {
    max-width: 28rem;
}

.object-cover {
    object-fit: cover;
}

/* ==========================================================================
   Additional Layout Utilities
   ========================================================================== */

.left-0 { left: 0; }
.right-0 { right: 0; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }

.top-3 { top: 0.75rem; }
.left-3 { left: 0.75rem; }

.pl-8 { padding-left: 2rem; }
.pl-10 { padding-left: 2.5rem; }

.last\\:border-0:last-child {
    border-width: 0;
}

/* ==========================================================================
   Border Width Utilities
   ========================================================================== */

.border-2 { border-width: 2px; }
.border-4 { border-width: 4px; }

/* ==========================================================================
   Opacity Utilities
   ========================================================================== */

.opacity-30 { opacity: 0.3; }
.opacity-50 { opacity: 0.5; }
.opacity-80 { opacity: 0.8; }

/* ==========================================================================
   Specific Component Overrides for Clean Design
   ========================================================================== */

/* MudBlazor Dialog Override */
.mud-dialog {
    border-radius: 12px !important;
    box-shadow: var(--shadow-2xl) !important;
}

.mud-dialog-title {
    background: white !important;
    color: var(--gray-900) !important;
    font-weight: 600 !important;
    border-bottom: 1px solid var(--gray-200) !important;
}

/* MudBlazor TextField Override for cleaner look */
.mud-input-root {
    border-radius: 8px !important;
}

.mud-input-outlined .mud-input-slot {
    border-color: var(--gray-300) !important;
}

.mud-input-outlined:hover .mud-input-slot {
    border-color: var(--primary-500) !important;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid var(--gray-300) !important;
    }
}

/* ==========================================================================
   Dark Mode Support (Future Enhancement)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    /* Will be implemented in future version */
}
