/* Modern Dashboard Premium CSS Overrides */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800;900&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');


:root {
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #818cf8 100%);
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --card-shadow: 0 4px 20px -2px rgba(148, 163, 184, 0.12), 0 2px 8px -1px rgba(148, 163, 184, 0.08);
    --card-hover-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.1), 0 10px 10px -5px rgba(99, 102, 241, 0.04);
}

body {
    font-family: 'Inter', sans-serif !important;
    background-color: var(--bg-main) !important;
    color: var(--text-primary) !important;
}

/* Container spacing */
.pc-container {
    background-color: var(--bg-main) !important;
    min-height: calc(100vh - 70px);
}

.pc-content {
    padding: 2rem 2.5rem !important;
}

/* Premium Card Styles */
.card, .card.shadow-sm, .card.shadow {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    box-shadow: var(--card-shadow) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--card-hover-shadow) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
}

.card-header {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color) !important;
    padding: 1.25rem 1.5rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
}

/* Welcome Card Override */
.welcome-card {
    background: var(--primary-gradient) !important;
    border: none !important;
    color: #ffffff !important;
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

/* Tables styling */
.table {
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
    margin-top: -8px !important;
}

.table thead th {
    background-color: #f1f5f9 !important;
    border: none !important;
    color: var(--text-secondary) !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 0.75rem !important;
    letter-spacing: 0.05em;
    padding: 12px 16px !important;
    border-radius: 8px;
}

.table tbody tr {
    background: #ffffff !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

.table tbody tr:hover {
    background-color: #f8fafc !important;
    transform: scale(1.002);
}

.table tbody td {
    padding: 14px 16px !important;
    border-top: 1px solid var(--border-color) !important;
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
    font-size: 0.85rem !important;
}

.table tbody tr td:first-child {
    border-left: 1px solid var(--border-color) !important;
    border-top-left-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
}

.table tbody tr td:last-child {
    border-right: 1px solid var(--border-color) !important;
    border-top-right-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}

/* Buttons */
.btn-primary {
    background: var(--primary-gradient) !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2) !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
}

.btn-primary:hover {
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.3) !important;
    transform: translateY(-1px) !important;
}

/* Inputs & Form Controls */
.form-control, .form-select {
    border: 1px solid var(--border-color) !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
    background-color: #ffffff !important;
    transition: all 0.2s ease !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15) !important;
}

/* Badges */
.badge {
    padding: 6px 12px !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Quick Actions Button */
.quick-action-btn {
    border: 1px solid var(--border-color) !important;
    background: #ffffff !important;
    box-shadow: var(--card-shadow) !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.quick-action-btn:hover {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    transform: translateY(-4px) !important;
    box-shadow: var(--card-hover-shadow) !important;
}

.quick-action-btn:hover i, .quick-action-btn:hover svg {
    color: #ffffff !important;
}

/* Ensure all avatars and progress-circles are perfect circles */
.avatar {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    padding: 0 !important;
}

.progress-circle {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Redesign Select Company Dropdown Button */
#typeDropdown {
    border-radius: 10px !important;
    font-weight: 600 !important;
    padding: 10px 18px !important;
    border: none !important;
    background: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2) !important;
    transition: all 0.2s ease !important;
    height: auto !important;
}

#typeDropdown:hover, #typeDropdown:focus, #typeDropdown[aria-expanded="true"] {
    background: #059669 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3) !important;
}

/* Animations for Login Page */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-main .card {
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.auth-main h1, .auth-main .lead, .auth-main .gap-3 > div, .auth-main .welcome-card {
    animation: fadeInUp 0.8s ease-out both;
}

.auth-main h1 {
    animation-delay: 0.1s;
}

.auth-main .lead {
    animation-delay: 0.2s;
}

.auth-main .gap-3 > div:nth-child(1) {
    animation-delay: 0.3s;
}

.auth-main .gap-3 > div:nth-child(2) {
    animation-delay: 0.4s;
}

.auth-main .gap-3 > div:nth-child(3) {
    animation-delay: 0.5s;
}

.auth-main .welcome-card {
    animation-delay: 0.6s;
}

/* Brand Logo Styles */
.logo-text {
    font-size: 38px !important; /* Premium large logo text */
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    display: inline-flex !important;
    align-items: center !important;
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
}


.logo-icon-svg {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
}

.logo-wrapper:hover .logo-icon-svg {
    transform: scale(1.12) rotate(4deg) !important;
}

.logo-text .text-xtra {
    color: #ffffff !important;
}
.logo-text .text-scale {
    color: #0f172a !important;
}

/* Custom layout overrides inside .auth-main with clean light theme background */
.auth-main {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%) !important;
    position: relative;
    overflow: hidden;
}

.auth-main::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: radial-gradient(circle at 80% 20%, rgba(79, 70, 229, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

/* Forms layout constraints (Clean Light Elevate Card Container) */
.auth-main .auth-card {
    max-width: 440px !important;
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 40px 32px !important;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.07), 0 0 15px 0 rgba(15, 23, 42, 0.03) !important;
    z-index: 10;
}

/* Input labels */
.auth-main label.form-label {
    color: #0f172a !important;
}

/* Unified Seamless Light Input Group */
.auth-main .input-group {
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    overflow: hidden !important;
    transition: all 0.25s ease !important;
}

.auth-main .input-group:focus-within {
    border-color: #4f46e5 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12) !important;
}

.auth-main .input-group .input-group-text,
.auth-main .input-group input.form-control,
.auth-main .input-group .password-toggle-btn {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #0f172a !important;
}

.auth-main .input-group .input-group-text {
    padding-left: 18px !important;
    padding-right: 10px !important;
    color: #64748b !important;
}

.auth-main .input-group:focus-within .input-group-text {
    color: #4f46e5 !important;
}

.auth-main .input-group input.form-control {
    padding: 14px 14px 14px 0 !important;
    font-size: 0.95rem !important;
    color: #0f172a !important;
}

.auth-main .input-group input.form-control::placeholder {
    color: #94a3b8 !important;
}

.auth-main .input-group .password-toggle-btn {
    padding-right: 18px !important;
    padding-left: 10px !important;
    color: #64748b !important;
}

.auth-main .input-group .password-toggle-btn:hover {
    color: #0f172a !important;
}

/* Submit Login Button (Modern Indigo Gradient Block) */
.auth-main .btn-login-submit {
    border: none !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 14px 30px !important;
    font-size: 1rem !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3) !important;
}

.auth-main .btn-login-submit:hover {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.45) !important;
    color: #ffffff !important;
}

.auth-main .btn-login-submit i {
    transition: transform 0.25s ease !important;
}

.auth-main .btn-login-submit:hover i {
    transform: translateX(4px) !important;
}

/* Custom Checkbox & Hover Link Styles */
.auth-main .custom-checkbox {
    background-color: #f1f5f9 !important;
    border: 1.5px solid #cbd5e1 !important;
    cursor: pointer;
}

.auth-main .custom-checkbox:checked {
    background-color: #4f46e5 !important;
    border-color: #4f46e5 !important;
}

.auth-main .text-hover-white {
    transition: color 0.2s ease !important;
}

.auth-main .text-hover-white:hover {
    color: #ffffff !important;
}

.auth-main .text-hover-underline:hover {
    text-decoration: underline !important;
}

/* Ambient Glowing Background Orbs */
.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
    animation: pulseOrb 10s ease-in-out infinite alternate;
}

.ambient-orb-1 {
    width: 340px;
    height: 340px;
    top: 10%;
    left: 15%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.5) 0%, rgba(59, 130, 246, 0.15) 70%, transparent 100%);
}

.ambient-orb-2 {
    width: 400px;
    height: 400px;
    bottom: 5%;
    right: 12%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, rgba(99, 102, 241, 0.15) 70%, transparent 100%);
    animation-delay: -5s;
}

.ambient-orb-3 {
    width: 300px;
    height: 300px;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(236, 72, 153, 0.25) 0%, transparent 70%);
    animation-delay: -2.5s;
}

@keyframes pulseOrb {
    0% {
        transform: scale(1) translateY(0);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.15) translateY(-20px);
        opacity: 0.75;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 0.5;
    }
}

/* Animations for Login Page Elements */
.auth-card .mb-4,
.auth-card h1,
.auth-card p,
.auth-card form .mb-3,
.auth-card form .mb-2,
.auth-card form .text-end,
.auth-card form .d-grid,
.auth-card form .text-center {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}


.auth-card .mb-4 { animation-delay: 0.05s; }
.auth-card h1 { animation-delay: 0.1s; }
.auth-card p.text-white-50 { animation-delay: 0.15s; }
.auth-card form .mb-3 { animation-delay: 0.2s; }
.auth-card form .mb-2 { animation-delay: 0.25s; }
.auth-card form .text-end { animation-delay: 0.3s; }
.auth-card form .d-grid:nth-of-type(1) { animation-delay: 0.35s; }
.auth-card form .d-grid:nth-of-type(2) { animation-delay: 0.4s; }
.auth-card form .text-center { animation-delay: 0.45s; }


/* Corner waves absolute position */
.auth-main .corner-wave {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0.85;
}

/* Float animations for background waves */
@keyframes floatWave {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(-15px, 15px) rotate(2deg);
    }
}

.auth-main .corner-wave path {
    animation: floatWave 12s ease-in-out infinite alternate;
}

/* Chrome/Safari/Edge Autofill Styles Overrides (Light Theme Blend) */
.auth-main input.form-control:-webkit-autofill,
.auth-main input.form-control:-webkit-autofill:hover, 
.auth-main input.form-control:-webkit-autofill:focus, 
.auth-main input.form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #f8fafc inset !important;
    -webkit-text-fill-color: #0f172a !important;
    color: #0f172a !important;
    transition: background-color 50000s ease-in-out 0s !important;
}

/* Global Aesthetic Polish & UI Micro-Interactions */
.table-responsive {
    border-radius: 16px !important;
    box-shadow: 0 4px 20px -2px rgba(148, 163, 184, 0.12) !important;
}

.table tbody tr:hover td {
    background-color: #f1f5f9 !important;
    transition: background-color 0.2s ease;
}

.btn-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-action-icon:hover {
    transform: translateY(-2px) scale(1.05);
}

.modal-content {
    border-radius: 20px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important;
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 1.25rem 1.5rem !important;
}

.modal-footer {
    border-top: 1px solid #f1f5f9 !important;
    padding: 1.25rem 1.5rem !important;
}

/* Glassmorphism utility */
.glass-panel {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
}
