/* Basic Bootstrap overrides and custom styles */
body {
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header mobile fine-tuning */
@media (max-width: 480px) {
    header .d-flex {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    header nav {
        margin-top: 0.25rem;
    }
}

footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

/* Colour Variables */
:root {
    --primary-teal: #0f766e;
    --accent-orange: #ea580c;
    --soft-red: #ef4444;
    --text-dark: #1f2937;
    --gray-bg: #f3f4f6;
}

/* Primary Buttons */
.btn-primary {
    color: white;
    background: linear-gradient(145deg, var(--primary-teal), #0a5c55);
    border: none;
}
.btn-primary:hover {
    background-color: #0a5c55;
    border-color: #0a5c55;
    color: white;
}

.btn-outline-primary {
    color: var(--primary-teal);
    border-color: var(--primary-teal);
}
.btn-outline-primary:hover {
    background-color: var(--primary-teal);
    color: white;
}

/* Accent (Mark Paid) – use burnt orange */
.btn-success {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
    color: white;
}
.btn-success:hover {
    background-color: #c2410c;
    border-color: #c2410c;
    color: white;
}
.btn-outline-success {
    color: var(--accent-orange);
    border-color: var(--accent-orange);
    background-color: transparent;
}
.btn-outline-success:hover {
    background-color: var(--accent-orange);
    color: white;
}

/* Danger (Delete) – keep red */
.btn-danger {
    background-color: var(--soft-red);
    border-color: var(--soft-red);
    color: white;
}
.btn-outline-danger {
    color: var(--soft-red);
    border-color: var(--soft-red);
    background-color: transparent;
}
.btn-outline-danger:hover {
    background-color: var(--soft-red);
    color: white;
}

/* Custom overdue badge – for invoices >30 days pending */
.badge-overdue {
    background-color: #b91c1c;
    color: white;
}

/* Card styling (global) – no left border by default */
.card {
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.08);
}

/*  cards – orange left border */
.card-accent-left {
    border-left: 3px solid var(--accent-orange);
}
.card-accent-left.text-bg-warning {
    border-left-color: #eab308;
}
.card-accent-left.text-bg-danger {
    border-left-color: var(--soft-red);
}

.feature-card {
    background: var(--gray-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.2s;
}
.feature-card:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Mobile optimisations */
@media (max-width: 767.98px) {
    .table-responsive {
        overflow-x: auto;
    }
    .btn-group {
        display: flex;
        flex-wrap: wrap;
    }
    .pagination {
        flex-wrap: wrap;
    }
}

/* Text colours */
body {
    color: var(--text-dark);
}
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-teal);
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-teal) 0%, #0a5c55 100%);
    color: white;
    border-radius: 0;
    margin-top: -1rem;
}
.hero-section h1,
.hero-section .lead {
    color: white;
}

/* Accent button */
.btn-accent {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
    color: white;
}
.btn-accent:hover {
    background-color: #c2410c;
    border-color: #c2410c;
    color: white;
}

/* Screenshot cards */
.screenshot-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-radius: 0.5rem;
    background: white;
    border: none;
}
.screenshot-frame {
    border: 1px solid #e0e0e0;
    border-radius: 0.25rem;
    overflow: hidden;
}

/* Border-left utilities */
.border-left-red {
    border-left: 4px solid var(--soft-red) !important;
}
.border-left-orange {
    border-left: 4px solid var(--accent-orange) !important;
}


/*Landing page*/

/* Screenshot mockup: laptop base + floating mobile */
.screenshot-mockup {
    position: relative;      /* allows mobile to overflow outside */
}

.mockup-desktop {
    width: 100%;
    border: 2px solid #333;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: block;
}

.mockup-mobile {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 32%;              /* phone width relative to laptop */
    border: 3px solid #333;
    border-radius: 14px;     /* phone shape */
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    background: #fff;        /* white phone screen background */
    display: block;
}

.mockup-mobile img {
    display: block;
    width: 100%;
    border-radius: 10px;     /* slightly inside the phone frame */
}

/* Carousel corrections – ensure arrows are visible */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-teal);
    border-radius: 50%;
    padding: 0.75rem;
    background-size: 50%;
}

.carousel-item img {
    max-height: 80vh;
    object-fit: contain;
    margin: 0 auto;
}