﻿/* ===========================================
   Hero Carousel
   =========================================== */

.hero-screenshot-carousel {
    position: relative;
}

.hero-slides {
    position: relative;
    min-height: 320px;
}

    .hero-slides .hero-screenshot {
        opacity: 0;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        transition: opacity 0.5s ease;
        pointer-events: none;
    }

        .hero-slides .hero-screenshot.active {
            opacity: 1;
            position: relative;
            pointer-events: auto;
        }

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 120, 114, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

    .carousel-dot:hover {
        background: rgba(0, 120, 114, 0.5);
    }

    .carousel-dot.active {
        background: var(--primary);
        width: 24px;
        border-radius: 4px;
    }

/* ===========================================
   Slide 2: Calendar Mini
   =========================================== */

.calendar-mini {
    padding: 0.5rem;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 0.5rem;
}

    .calendar-weekdays span {
        text-align: center;
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--text-light);
        padding: 0.25rem;
        text-transform: uppercase;
    }

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

    .calendar-days span {
        text-align: center;
        font-size: 0.8rem;
        padding: 0.5rem 0.25rem;
        border-radius: 4px;
        color: var(--text-dark);
        position: relative;
    }

        .calendar-days span.other-month {
            color: #ccc;
        }

        .calendar-days span.has-event {
            background: var(--primary-light);
            font-weight: 600;
        }

            .calendar-days span.has-event::after {
                content: '';
                position: absolute;
                bottom: 4px;
                left: 50%;
                transform: translateX(-50%);
                width: 4px;
                height: 4px;
                border-radius: 50%;
                background: var(--primary);
            }

            .calendar-days span.has-event.primary {
                background: var(--primary);
                color: white;
            }

                .calendar-days span.has-event.primary::after {
                    background: white;
                }

            .calendar-days span.has-event.accent {
                background: var(--accent);
                color: white;
            }

                .calendar-days span.has-event.accent::after {
                    background: white;
                }

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #edf2f7;
}

    .calendar-legend span {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        font-size: 0.75rem;
        color: var(--text-medium);
    }

    .calendar-legend i {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        display: inline-block;
    }

/* ===========================================
   Slide 3: Contracts
   =========================================== */

.contract-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #edf2f7;
}

    .contract-item:last-child {
        border-bottom: none;
    }

.contract-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .contract-icon.signed {
        background: #d1fae5;
        color: #059669;
    }

    .contract-icon.pending {
        background: #fef3c7;
        color: #d97706;
    }

    .contract-icon.sent {
        background: #dbeafe;
        color: #2563eb;
    }

    .contract-icon.draft {
        background: #f3f4f6;
        color: #6b7280;
    }

.contract-details {
    flex: 1;
    min-width: 0;
}

    .contract-details h5 {
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--text-dark);
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .contract-details p {
        font-size: 0.75rem;
        color: var(--text-light);
        margin: 0.15rem 0 0 0;
    }

.contract-date {
    font-size: 0.75rem;
    color: var(--text-light);
    white-space: nowrap;
}

/* ===========================================
   Slide 4: Invoices
   =========================================== */

.invoice-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-bottom: 1px solid #edf2f7;
}

.invoice-stat {
    text-align: center;
}

.invoice-amount {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Outfit', sans-serif;
}

    .invoice-amount.success {
        color: #059669;
    }

    .invoice-amount.warning {
        color: #d97706;
    }

.invoice-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-light);
    text-transform: uppercase;
    margin-top: 0.15rem;
}

.invoice-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #edf2f7;
}

    .invoice-item:last-child {
        border-bottom: none;
    }

.invoice-number {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-medium);
    font-family: monospace;
    width: 70px;
}

.invoice-client {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.invoice-amount-small {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: right;
    min-width: 70px;
}

.invoice-status {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}

    .invoice-status.paid {
        background: #d1fae5;
        color: #059669;
    }

    .invoice-status.pending {
        background: #fef3c7;
        color: #d97706;
    }

/* ===========================================
   Mobile Adjustments
   =========================================== */

@media (max-width: 768px) {
    .hero-slides {
        min-height: 280px;
    }

    .calendar-weekdays span {
        font-size: 0.6rem;
        padding: 0.2rem;
    }

    .calendar-days span {
        font-size: 0.7rem;
        padding: 0.35rem 0.15rem;
    }

    .invoice-summary {
        padding: 0.75rem 0.5rem;
    }

    .invoice-amount {
        font-size: 0.9rem;
    }

    .invoice-item {
        padding: 0.5rem 0.75rem;
    }

    .invoice-number {
        width: auto;
        font-size: 0.7rem;
    }

    .invoice-amount-small {
        font-size: 0.75rem;
        min-width: auto;
    }

    .contract-item {
        padding: 0.6rem 0.75rem;
    }

    .contract-details h5 {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-slides {
        min-height: 260px;
    }

    .calendar-legend {
        gap: 1rem;
    }

    .invoice-summary {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .invoice-stat {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .invoice-label {
        margin-top: 0;
    }
}
