﻿:root {
    --primary-green: #00953f;
    --dark-green: #45a049;
    --light-gray: #f8f9fa;
}

body {
    background-color: var(--light-gray);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.header {
    background-color: var(--primary-green);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-title {
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    justify-content: center;
    width: 100%;
    text-align: center;
}

/* Mobile header adjustments */
@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }

    .header-title {
        font-size: 1.2rem;
        margin-top: 10px;
    }

    .logo {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .header-buttons {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .header-title {
        font-size: 1rem;
        width: 100%;
        flex-grow: 1;
        text-align: center;
    }

    .header-buttons {
        flex-direction: column;
        gap: 5px;
        width: 100%;
    }

    .header-btn {
        text-align: center;
        width: 100%;
    }
}

.main-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 20px auto;
    padding: 20px;
    max-width: 1200px;
}

/* Mobile container adjustments */
@media (max-width: 768px) {
    .main-container {
        margin: 15px;
        padding: 15px;
        border-radius: 5px;
    }
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-control {
    border: 2px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    transition: border-color 0.3s;
    font-size: 0.9rem;
}

    .form-control:focus {
        border-color: var(--primary-green);
        box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
    }

/* Mobile form adjustments */
@media (max-width: 576px) {
    .form-control {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

.btn-primary {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s;
    width: 100%;
}

    .btn-primary:hover {
        background-color: var(--dark-green);
        border-color: var(--dark-green);
        transform: translateY(-1px);
    }

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 5px;
    width: 100%;
}

/* Desktop button adjustments */
@media (min-width: 768px) {
    .btn-primary,
    .btn-secondary {
        width: auto;
        min-width: 120px;
    }
}

.section-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-green);
}

/* Mobile title adjustments */
@media (max-width: 576px) {
    .section-title {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ddd;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s;
}

/* Mobile step indicator */
@media (max-width: 576px) {
    .step {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

.step.active {
    background-color: var(--primary-green);
}

.step.completed {
    background-color: var(--dark-green);
}

.invoice-table {
    background-color: #f8f9fa;
    border-radius: 5px;
    overflow: hidden;
    overflow-x: auto;
}

.table-responsive {
    border-radius: 5px;
}

.table-dark {
    background-color: #495057;
}

/* Mobile table adjustments */
@media (max-width: 768px) {
    .table {
        font-size: 0.8rem;
    }

        .table th,
        .table td {
            padding: 8px 4px;
            white-space: nowrap;
        }
}

.summary-box {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 20px;
    margin-top: 20px;
}

/* Mobile summary adjustments */
@media (max-width: 576px) {
    .summary-box {
        padding: 15px;
    }
}

.hidden {
    display: none;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

/* Mobile navigation buttons */
@media (max-width: 576px) {
    .nav-buttons {
        flex-direction: column;
        gap: 10px;
    }

        .nav-buttons > div:empty {
            display: none;
        }
}

.company-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Mobile company info */
@media (max-width: 576px) {
    .company-info {
        padding: 15px;
    }

        .company-info h5,
        .company-info h6 {
            font-size: 1rem;
        }
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 10px;
}

/* Mobile info rows */
@media (max-width: 576px) {
    .info-row {
        flex-direction: column;
        gap: 5px;
    }
}

.info-label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

.info-value {
    color: #333;
    font-size: 0.9rem;
    word-break: break-all;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

/* Mobile action buttons */
@media (max-width: 576px) {
    .action-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.btn-xml {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.btn-pdf {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-email {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #333;
}

.btn-send {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.header-btn {    
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    white-space: nowrap;
}

    .header-btn:hover {
        background-color: rgba(255,255,255,0.3);
        color: white;
    }

/* Mobile header buttons */
@media (max-width: 576px) {
    .header-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Form group spacing for mobile */
@media (max-width: 576px) {
    .mb-3 {
        margin-bottom: 1.5rem !important;
    }
}

/* Input group adjustments for mobile */
.input-group-text {
    font-size: 0.9rem;
}

@media (max-width: 576px) {
    .input-group-text {
        padding: 12px;
    }
}

/* Scrollable table container */
.table-container {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Better touch targets for mobile */
@media (max-width: 768px) {
    .btn {
        min-height: 44px;
        padding: 12px 16px;
    }

    .form-control,
    .form-select {
        min-height: 44px;
    }
}

/* Improved readability on small screens */
@media (max-width: 576px) {
    body {
        font-size: 14px;
        line-height: 1.5;
    }
}

/* Container padding adjustments */
@media (max-width: 576px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}
