/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #2c3e50;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 5px;
}

.logo h1 i {
    margin-right: 10px;
    color: #3498db;
}

.tagline {
    font-size: 0.9rem;
    opacity: 0.9;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.main-nav a:hover, .main-nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* SEO Intro Section */
.seo-intro {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #3498db;
}

.seo-intro h2 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.seo-intro p {
    color: #555;
    font-size: 1.05rem;
}

/* Main App Container */
.app-container {
    display: flex;
    gap: 25px;
    margin: 30px 0;
}

/* Left Panel Styles */
.left-panel {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.form-section h3 i {
    margin-right: 10px;
    color: #3498db;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border 0.3s;
    font-family: 'Roboto', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

select.form-control {
    background-color: white;
    cursor: pointer;
}

.upload-container {
    display: flex;
    gap: 10px;
}

/* Right Panel Styles */
.right-panel {
    flex: 1.5;
}

.invoice-preview-container {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.preview-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-header h3 {
    color: white;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.preview-header h3 i {
    margin-right: 10px;
}

.preview-actions {
    display: flex;
    gap: 10px;
}

/* Button Styles */
.btn-primary, .btn-secondary, .btn-action {
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary i, .btn-secondary i, .btn-action i {
    margin-right: 8px;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #e74c3c;
    color: white;
}

.btn-secondary:hover {
    background-color: #c0392b;
}

.btn-action {
    background-color: white;
    color: #2c3e50;
    border: 1px solid #ddd;
}

.btn-action:hover {
    background-color: #f8f9fa;
    border-color: #3498db;
}

/* Invoice Preview Styles */
.invoice-preview {
    padding: 30px;
    background-color: white;
    min-height: 400px;
    border-bottom: 1px solid #eee;
}

.invoice-preview-content {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Roboto', sans-serif;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #3498db;
}

.company-info h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: #2c3e50;
}

.invoice-meta {
    text-align: right;
}

.invoice-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.invoice-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.from-to-section {
    display: flex;
    gap: 40px;
}

.from-section, .to-section {
    flex: 1;
}

.section-label {
    font-weight: 600;
    color: #3498db;
    margin-bottom: 10px;
    display: block;
    font-size: 1.1rem;
}

.invoice-items-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.invoice-items-table th {
    background-color: #f8f9fa;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #3498db;
    color: #2c3e50;
    font-weight: 600;
}

.invoice-items-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.invoice-items-table tbody tr:hover {
    background-color: #f9f9f9;
}

.invoice-totals {
    margin-top: 30px;
    text-align: right;
}

.totals-table {
    width: 300px;
    margin-left: auto;
    border-collapse: collapse;
}

.totals-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.totals-table tr:last-child td {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.2rem;
    color: #2c3e50;
}

.invoice-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #777;
}

/* Items Management */
.items-management {
    padding: 25px;
}

.items-management h3 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.items-management h3 i {
    margin-right: 10px;
    color: #3498db;
}

.items-table-container {
    overflow-x: auto;
    margin-bottom: 25px;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
}

.items-table th {
    background-color: #f8f9fa;
    padding: 15px;
    text-align: left;
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
}

.items-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.items-table tbody tr:hover {
    background-color: #f9f9f9;
}

.item-action {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 1.1rem;
    margin: 0 5px;
    transition: color 0.3s;
}

.item-action:hover {
    color: #c0392b;
}

.item-action.edit {
    color: #3498db;
}

.item-action.edit:hover {
    color: #2980b9;
}

/* Summary Section */
.summary-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-weight: 700;
    font-size: 1.2rem;
    color: #2c3e50;
}

.due-amount {
    color: #e74c3c;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Features Section */
.features-section {
    margin: 60px 0;
    padding: 40px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.features-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.feature-card {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    margin: 50px 0;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.faq-item p {
    color: #555;
    line-height: 1.6;
}

/* Footer Styles */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info, .footer-links, .footer-contact {
    flex: 1;
    min-width: 250px;
}

.footer-info h3 {
    color: white;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.footer-info h3 i {
    margin-right: 10px;
    color: #3498db;
}

.footer-links h4, .footer-contact h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #3498db;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #7f8c8d;
}

.modal-icon {
    font-size: 4rem;
    color: #2ecc71;
    margin-bottom: 20px;
}

.modal h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.modal p {
    margin-bottom: 25px;
    color: #555;
}

.modal-close {
    padding: 12px 30px;
}

/* Responsive Design */
@media (max-width: 1100px) {
    .app-container {
        flex-direction: column;
    }
    
    .left-panel, .right-panel {
        width: 100%;
    }
    
    .preview-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .main-nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav li {
        margin: 5px 10px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .preview-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .preview-actions {
        margin-top: 15px;
        width: 100%;
        justify-content: flex-start;
    }
    
    .invoice-details {
        flex-direction: column;
    }
    
    .from-to-section {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-content {
        flex-direction: column;
    }
}










.main-nav {
    position: relative;
}

.hamburger {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* Desktop menu */
#navLinks {
    display: flex;
    list-style: none;
    gap: 20px;
}

/* Mobile style */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    #navLinks {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 50px;
        right: 0;
        background: #111;
        width: 200px;
        padding: 15px;
        border-radius: 8px;
    }

    #navLinks.show {
        display: flex;
    }
}



.footer-parent {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.7;
    text-align: center;
}

.footer-parent a {
    text-decoration: none;
    font-weight: 500;
}

.footer-parent a:hover {
    opacity: 1;
}
