@import url('https://fonts.maateen.me/adorsho-lipi/font.css');

* {
    color: #000 !important;
}

body {
    font-family: 'AdorshoLipi', 'Arial', sans-serif;
    background-color: #e0e0e0;
    line-height: 1.6;
    padding: 10px;
    margin: 0;
}

.document-container {
    background-color: #fff;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.document-header {
    text-align: center;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.document-header h1 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    color: #000 !important;
}

.document-header p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #000 !important;
}

.document-section {
    margin-bottom: 20px;
}

.document-section h2, .document-section h3 {
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-size: 18px;
    color: #000 !important;
}

.data-table, .results-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
}

.data-table th, .data-table td, .results-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
    color: #000 !important;
}

.data-table th {
    background-color: #f2f2f2;
    font-weight: bold;
    color: #000 !important;
}

.data-table input {
    width: 100%;
    border: none;
    padding: 5px;
    box-sizing: border-box;
    font-family: 'AdorshoLipi', 'Arial', sans-serif;
    color: #000 !important;
    background-color: transparent;
}

.results-table td:first-child {
    font-weight: bold;
    width: 60%;
    color: #000 !important;
}

.results-table td:last-child {
    text-align: right;
    font-weight: bold;
    color: #000 !important;
}

.positive {
    color: #28a745 !important;
}

.input-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.input-group {
    flex: 1;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
    color: #000 !important;
}

.input-group input[type="number"], .input-group input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
    font-family: 'AdorshoLipi', 'Arial', sans-serif;
    color: #000 !important;
    background-color: #fff;
}

.input-group input[type="number"]:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    color: #666 !important;
}

.mode-selector {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.mode-selector label {
    font-weight: normal;
    font-size: 14px;
    color: #000 !important;
}

.mode-selector input[type="radio"] {
    margin-right: 5px;
}

.add-product-btn, .remove-btn, .action-btn {
    background-color: #007bff;
    color: white !important;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'AdorshoLipi', 'Arial', sans-serif;
    font-size: 14px;
}

.add-product-btn:hover, .action-btn:hover {
    background-color: #0056b3;
}

.remove-btn {
    background-color: #dc3545;
    font-size: 12px;
    padding: 5px 10px;
}

.remove-btn:hover {
    background-color: #c82333;
}

.strategy-item {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-left: 4px solid #007bff;
}

.strategy-item h4 {
    margin-top: 0;
    color: #007bff !important;
    font-size: 16px;
}

.strategy-item p {
    margin: 5px 0;
    font-size: 14px;
    color: #000 !important;
}

.budget-breakdown {
    margin-top: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 3px;
}

.budget-breakdown p {
    margin: 0;
    font-size: 14px;
    color: #000 !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    body {
        padding: 5px;
    }
    
    .document-container {
        padding: 15px;
    }
    
    .document-header h1 {
        font-size: 18px;
    }
    
    .document-header p {
        font-size: 13px;
    }
    
    .document-section h2, .document-section h3 {
        font-size: 16px;
    }
    
    .input-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .input-group label {
        font-size: 13px;
    }
    
    .mode-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .data-table, .results-table {
        font-size: 12px;
    }
    
    .data-table th, .data-table td, .results-table td {
        padding: 6px;
    }
    
    .data-table th {
        font-size: 11px;
    }
    
    .data-table input {
        padding: 4px;
        font-size: 12px;
    }
    
    .strategy-item {
        padding: 10px;
    }
    
    .strategy-item h4 {
        font-size: 15px;
    }
    
    .strategy-item p {
        font-size: 13px;
    }
    
    .budget-breakdown p {
        font-size: 12px;
    }
    
    .add-product-btn, .action-btn {
        padding: 8px 12px;
        font-size: 13px;
        width: 100%;
    }
    
    .remove-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* Small mobile responsiveness */
@media (max-width: 480px) {
    .document-container {
        padding: 10px;
    }
    
    .document-header h1 {
        font-size: 16px;
    }
    
    .document-header p {
        font-size: 12px;
    }
    
    .document-section h2, .document-section h3 {
        font-size: 15px;
    }
    
    .data-table, .results-table {
        font-size: 11px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .data-table th, .data-table td, .results-table td {
        padding: 5px;
        min-width: 80px;
    }
    
    .data-table th {
        font-size: 10px;
    }
    
    .data-table input {
        padding: 3px;
        font-size: 11px;
    }
    
    .input-group label {
        font-size: 12px;
    }
    
    .strategy-item h4 {
        font-size: 14px;
    }
    
    .strategy-item p {
        font-size: 12px;
    }
    
    .budget-breakdown p {
        font-size: 11px;
    }
    
    .add-product-btn, .action-btn {
        padding: 10px;
        font-size: 12px;
    }
    
    .remove-btn {
        padding: 3px 6px;
        font-size: 10px;
    }
}

/* Extra small mobile responsiveness */
@media (max-width: 360px) {
    .document-header h1 {
        font-size: 15px;
    }
    
    .document-header p {
        font-size: 11px;
    }
    
    .document-section h2, .document-section h3 {
        font-size: 14px;
    }
    
    .data-table th, .data-table td, .results-table td {
        padding: 4px;
        min-width: 70px;
    }
    
    .data-table th {
        font-size: 9px;
    }
    
    .data-table input {
        padding: 2px;
        font-size: 10px;
    }
    
    .input-group label {
        font-size: 11px;
    }
    
    .mode-selector label {
        font-size: 12px;
    }
    
    .strategy-item h4 {
        font-size: 13px;
    }
    
    .strategy-item p {
        font-size: 11px;
    }
    
    .budget-breakdown p {
        font-size: 10px;
    }
}

/* Print-specific styles */
@media print {
    body {
        background: white;
        padding: 0;
    }
    .document-container {
        box-shadow: none;
        border: none;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    .no-print {
        display: none !important;
    }
    .document-section {
        page-break-inside: avoid;
    }
}