/*
* Pink O Blue - Custom CMS Branding
*/

:root {
    --brand-pink: #E276AD;
    --brand-blue: #3AB6E9;
    --brand-secondary: #6F7BBA;
    --brand-bg: #F8FAFC;
    --brand-surface: #FFFFFF;
    --brand-text: #333333;
    --brand-text-muted: #6c757d;
    --brand-border: #e2e8f0;
}

body {
    background-color: var(--brand-bg);
    color: var(--brand-text);
    font-family: 'Nunito', sans-serif;
    /* Fallback, will update if we import others */
}

/* Utilities */
.text-brand-pink {
    color: var(--brand-pink) !important;
}

.text-brand-blue {
    color: var(--brand-blue) !important;
}

.bg-brand-pink {
    background-color: var(--brand-pink) !important;
}

.bg-brand-blue {
    background-color: var(--brand-blue) !important;
}


/* Gradient Text */
.text-gradient {
    background: linear-gradient(to right, var(--brand-pink), var(--brand-blue));
    -webkit-background-clip: text;
    background-clip: text;
    /* Standard property */
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--brand-pink) 0%, var(--brand-blue) 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(226, 118, 173, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(226, 118, 173, 0.5);
    color: white;
}

/* Cards */
.card,
.bg-white {
    background-color: var(--brand-surface) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    border-radius: 16px !important;
}

/* Navigation Overrides */
nav.bg-white {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 118, 173, 0.1) !important;
}

/* Nav Links */
.nav-link,
a {
    transition: all 0.3s ease;
}

/* Active Nav Link Override (targeting Laravel Breeze classes) */
.border-indigo-400 {
    border-color: var(--brand-pink) !important;
    color: var(--brand-gray-dark);
    /* We often need a dark gray for text */
}

a:hover,
button:hover {
    color: var(--brand-pink);
}

/* Page Headers */
h2.font-semibold {
    color: var(--brand-secondary) !important;
    font-weight: 800 !important;
    font-size: 1.5rem !important;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    border-color: #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease;
}



input:focus,
textarea:focus,
select:focus {
    border-color: var(--brand-pink) !important;
    box-shadow: 0 0 0 3px rgba(226, 118, 173, 0.2) !important;
    outline: none !important;
}

label {
    color: var(--brand-secondary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th {
    background-color: #f8fafc;
    color: var(--brand-secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem !important;
    border-bottom: 2px solid #e2e8f0;
}

td {
    padding: 1rem !important;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}

tr:hover td {
    background-color: #f8fafc;
}

/* Glassmorphism Utilities */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    border-radius: 24px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation-name: fadeInUp;
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Modern Inputs */
.form-floating-modern {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-floating-modern input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: var(--brand-text);
}

.form-floating-modern input:focus {
    background: #ffffff;
    border-color: var(--brand-pink);
    box-shadow: 0 4px 12px rgba(226, 118, 173, 0.15);
    outline: none;
}

.form-floating-modern label {
    position: absolute;
    top: 50%;
    left: 1.25rem;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: var(--brand-text-muted);
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
    padding: 0 0.25rem;
}

.form-floating-modern input:focus~label,
.form-floating-modern input:not(:placeholder-shown)~label {
    top: 0;
    transform: translateY(-50%) scale(0.9);
    background: white;
    /* Match input bg on focus/filled */
    color: var(--brand-pink);
    font-weight: 600;
}

/* Enhancements for master layout linked elements */
.btn-primary {
    background-size: 200% auto;
    transition: 0.5s;
}


.btn-primary:hover {
    background-position: right center;
    /* Swaps the gradient direction */
}

/* Sidebar Styling */
/* Sidebar Styling */
/* Apply gradient only to leaf links (not accordion toggles) */
.menu-item:not(.menu-accordion)>.menu-link.active {
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-blue)) !important;
    transition: all 0.3s ease;
}

.menu-item:not(.menu-accordion)>.menu-link.active .menu-title {
    color: #ffffff !important;
    font-weight: 600;
}

.menu-item:not(.menu-accordion)>.menu-link.active .menu-icon .svg-icon svg [fill] {
    fill: #ffffff !important;
    opacity: 1 !important;
}

/* Style for active accordion headers (parent items) */
.menu-item.menu-accordion>.menu-link.active {
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-blue)) !important;
    color: #fff !important;
}


.menu-item.menu-accordion>.menu-link.active .menu-title {
    color: var(--brand-pink) !important;
    /* Highlight parent title */
    font-weight: 700;
}

.menu-item.menu-accordion>.menu-link.active .menu-icon .svg-icon svg [fill] {
    fill: #fff !important;
}

.menu-link:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.05);
}

.menu-link:hover:not(.active) .menu-title {
    color: var(--brand-blue) !important;
}



/* Fix for inline style overrides in sidebar headers */
.menu-section {
    color: var(--brand-secondary) !important;
    opacity: 0.8;
}