/* Main CSS file for TogetherBooth - Override Tailwind, DaisyUI and other styles */

/* Local Font Definitions */
@font-face {
    font-family: 'Playfair Display';
    src: url('/fonts/playfair-display-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('/fonts/playfair-display-700.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dancing Script';
    src: url('/fonts/dancing-script-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dancing Script';
    src: url('/fonts/dancing-script-700.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Font Variables */
:root {
    --font-serif: 'Playfair Display', serif;
    --font-script: 'Dancing Script', cursive;
}

/* Base Typography */
.font-serif {
    font-family: var(--font-serif) !important;
}

.font-script {
    font-family: var(--font-script) !important;
}

/* Headings with custom fonts */
h1.serif-heading {
    font-family: var(--font-serif) !important;
    font-weight: 700;
}

h2.serif-heading {
    font-family: var(--font-serif) !important;
    font-weight: 600;
}

.signature-text {
    font-family: var(--font-script) !important;
    font-weight: 400;
}

/* Ensure proper font loading */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Custom overrides will go here */

/* TogetherBooth Brand Color Palette */
:root {
    --tb-primary: #facc15;     /* Yellow 400 */
    --tb-primary-dark: #eab308; /* Yellow 500 */
    --tb-primary-light: #fde047; /* Yellow 300 */
    --tb-secondary: #1f2937;   /* Gray 800 */
    --tb-accent: #f59e0b;      /* Amber 500 */
    --tb-neutral: #6b7280;     /* Gray 500 */
    --tb-base-100: #ffffff;    /* White */
    --tb-base-200: #f9fafb;    /* Gray 50 */
    --tb-base-300: #f3f4f6;    /* Gray 100 */
    --tb-success: #10b981;     /* Emerald 500 */
    --tb-warning: #f59e0b;     /* Amber 500 */
    --tb-error: #ef4444;       /* Red 500 */
    --tb-info: #3b82f6;       /* Blue 500 */
}

/* DaisyUI Component Overrides */
:root {
    --rounded-box: 1rem;
    --rounded-btn: 0.5rem;
    --rounded-badge: 1.9rem;
    --animation-btn: 0.25s;
    --animation-input: 0.2s;
    --btn-focus-scale: 0.95;
    --border-btn: 1px;
    --tab-border: 1px;
    --tab-radius: 0.5rem;
    
    /* Override DaisyUI Colors with TogetherBooth Brand */
    --p: var(--tb-primary);
    --pc: var(--tb-secondary);
    --s: var(--tb-secondary);
    --sc: var(--tb-base-100);
    --a: var(--tb-accent);
    --ac: var(--tb-base-100);
    --n: var(--tb-neutral);
    --nc: var(--tb-base-100);
    --b1: var(--tb-base-100);
    --b2: var(--tb-base-200);
    --b3: var(--tb-base-300);
    --bc: var(--tb-secondary);
    --in: var(--tb-info);
    --su: var(--tb-success);
    --wa: var(--tb-warning);
    --er: var(--tb-error);
}

/* Button Styling */
.btn {
    font-family: var(--font-serif);
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.025em;
    border-radius: var(--rounded-btn);
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--tb-primary);
    color: var(--tb-secondary);
    border: none;
}

.btn-primary:hover {
    background-color: var(--tb-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.3);
}

.btn-secondary {
    background-color: var(--tb-secondary);
    color: var(--tb-base-100);
    border: 1px solid var(--tb-secondary);
}

.btn-secondary:hover {
    background-color: var(--tb-neutral);
    border-color: var(--tb-neutral);
}

.btn-ghost {
    background-color: transparent;
    color: var(--tb-secondary);
    border: 1px solid var(--tb-base-300);
}

.btn-ghost:hover {
    background-color: var(--tb-base-200);
    border-color: var(--tb-primary);
}

/* Card Styling */
.card {
    background-color: var(--tb-base-100);
    border-radius: var(--rounded-box);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.06);
}

.card-title {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--tb-secondary);
}

.card-body {
    padding: 2rem;
}

/* Alert Styling */
.alert {
    border-radius: var(--rounded-box);
    font-family: var(--font-sans);
    font-weight: 500;
}

.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Input Styling */
.input, .textarea, .select {
    border-radius: var(--rounded-btn);
    border: 1px solid var(--tb-base-300);
    background-color: var(--tb-base-100);
    color: var(--tb-secondary);
    font-family: var(--font-sans);
    transition: all 0.2s ease;
}

.input:focus, .textarea:focus, .select:focus {
    outline: none;
    border-color: var(--tb-primary);
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.1);
}

/* Badge Styling */
.badge {
    border-radius: var(--rounded-badge);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background-color: var(--tb-primary);
    color: var(--tb-secondary);
}

.badge-success {
    background-color: var(--tb-success);
    color: var(--tb-base-100);
}

.badge-warning {
    background-color: var(--tb-warning);
    color: var(--tb-base-100);
}

.badge-error {
    background-color: var(--tb-error);
    color: var(--tb-base-100);
}

/* Stats Styling */
.stats {
    background-color: var(--tb-base-100);
    border-radius: var(--rounded-box);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat {
    padding: 1.5rem;
}

.stat-title {
    font-family: var(--font-sans);
    font-weight: 500;
    color: var(--tb-neutral);
    font-size: 0.875rem;
}

.stat-value {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--tb-secondary);
    font-size: 2rem;
}

.stat-desc {
    font-family: var(--font-sans);
    color: var(--tb-neutral);
    font-size: 0.875rem;
}

/* Navbar Styling */
.navbar {
    background-color: var(--tb-base-100);
    border-bottom: 1px solid var(--tb-base-300);
    min-height: 4rem;
}

.navbar-brand {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--tb-secondary);
}

.navbar-brand .script-text {
    font-family: var(--font-script);
    color: var(--tb-primary);
}

/* Menu Styling */
.menu {
    background-color: var(--tb-base-100);
    border-radius: var(--rounded-box);
}

.menu li > a {
    font-family: var(--font-sans);
    font-weight: 500;
    color: var(--tb-secondary);
    border-radius: var(--rounded-btn);
    transition: all 0.2s ease;
}

.menu li > a:hover {
    background-color: var(--tb-base-200);
    color: var(--tb-primary-dark);
}

.menu li > a.active {
    background-color: var(--tb-primary);
    color: var(--tb-secondary);
}

/* Dropdown Styling */
.dropdown-content {
    background-color: var(--tb-base-100);
    border-radius: var(--rounded-box);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--tb-base-300);
}

/* Avatar Styling */
.avatar {
    border-radius: var(--rounded-badge);
}

.avatar.placeholder {
    background-color: var(--tb-primary);
    color: var(--tb-secondary);
    font-family: var(--font-serif);
    font-weight: 700;
}

/* Loading Spinner */
.loading {
    border-color: var(--tb-primary);
}

/* Divider */
.divider {
    color: var(--tb-neutral);
    font-family: var(--font-sans);
    font-weight: 500;
}

/* Progress Bar */
.progress {
    background-color: var(--tb-base-300);
}

.progress::-webkit-progress-bar {
    background-color: var(--tb-base-300);
}

.progress::-webkit-progress-value {
    background-color: var(--tb-primary);
}

.progress::-moz-progress-bar {
    background-color: var(--tb-primary);
}

/* Table Styling */
.table {
    font-family: var(--font-sans);
}

.table th {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--tb-secondary);
    background-color: var(--tb-base-200);
}

.table td {
    color: var(--tb-secondary);
}

.table-zebra tbody tr:nth-child(even) {
    background-color: var(--tb-base-200);
}

/* Modal Styling */
.modal-box {
    background-color: var(--tb-base-100);
    border-radius: var(--rounded-box);
    max-width: 32rem;
}

.modal-action {
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Tooltip */
.tooltip {
    font-family: var(--font-sans);
    font-size: 0.875rem;
}

/* Custom TogetherBooth Components */
.tb-header {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--tb-secondary);
    margin-bottom: 1rem;
}

.tb-subheader {
    font-family: var(--font-sans);
    font-weight: 500;
    color: var(--tb-neutral);
    margin-bottom: 0.5rem;
}

.tb-signature {
    font-family: var(--font-script);
    color: var(--tb-primary);
    font-size: 1.25rem;
}

.tb-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--tb-neutral);
}

.tb-empty-state svg {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    opacity: 0.5;
}

.tb-empty-state h3 {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--tb-secondary);
    margin-bottom: 0.5rem;
}

.tb-empty-state p {
    font-family: var(--font-sans);
    color: var(--tb-neutral);
    margin-bottom: 1.5rem;
}

/* Fix button icon sizing */
.tb-empty-state .btn svg {
    width: 1rem !important;
    height: 1rem !important;
    margin: 0 !important;
    opacity: 1 !important;
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem;
    }
    
    .stat {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

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

.slide-in {
    animation: slideIn 0.6s ease-out;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Sidebar Enhancements */
.sidebar-profile-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 0.75rem;
    padding: 0.75rem;
    margin: 0 0.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sidebar-nav-link {
    transition: all 0.2s ease-in-out;
    position: relative;
    margin: 0.125rem 0.5rem;
    border-radius: 0.5rem;
}

.sidebar-nav-link:hover {
    color: #f59e0b !important;
    background-color: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

.sidebar-nav-link:hover svg {
    color: #f59e0b !important;
}

.sidebar-nav-link.active {
    background: transparent !important;
    color: #1f2937 !important;
    box-shadow: none !important;
    transform: none !important;
    border-bottom: 2px solid #f59e0b !important;
    padding-bottom: 6px !important;
}

.sidebar-nav-link svg {
    transition: all 0.2s ease-in-out;
}

.sidebar-nav-link.active svg {
    color: #f59e0b !important;
}

/* Sidebar Background Enhancement */
.sidebar-background {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 30%, #f1f5f9 100%) !important;
    position: relative;
}

.sidebar-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(250, 204, 21, 0.03) 100%);
    pointer-events: none;
}