/**
 * Techmall Quote Styles
 * Custom styles for quote forms and pages
 *
 * @package Techmall\Quote
 * @version 1.0.0
 * @author  Techmall Web Solutions
 */

/* Quote Form Styles */
.techmall-quote-form {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.techmall-quote-form h2 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.techmall-quote-form > p {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: center;
}

.techmall-form-row {
    display: flex;
    margin-bottom: 25px;
    gap: 20px;
    flex-wrap: wrap;
}

.techmall-form-col {
    flex: 1;
    min-width: 250px;
}

.techmall-form-col.full-width {
    flex: 1 1 100%;
}

.techmall-form-col label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.techmall-form-col input,
.techmall-form-col select,
.techmall-form-col textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
    box-sizing: border-box;
}

.techmall-form-col input:focus,
.techmall-form-col select:focus,
.techmall-form-col textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.techmall-form-col textarea {
    resize: vertical;
    min-height: 120px;
}

.techmall-form-col small {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 12px;
}

.techmall-submit-btn {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: #ffffff;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.3);
    width: 100%;
}

.techmall-submit-btn:hover {
    background: linear-gradient(135deg, #005a87, #004d6b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.4);
}

.techmall-submit-btn:active {
    transform: translateY(0);
}

.required {
    color: #dc3545;
    font-weight: 700;
}

/* Success and Error Messages */
.techmall-success-message {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #28a745;
    font-weight: 500;
}

.techmall-error-message {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #dc3545;
    font-weight: 500;
}

.techmall-error-message ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.techmall-error-message li {
    margin-bottom: 5px;
}

/* Quote List Page Styles */
.techmall-quotes-list {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.techmall-quotes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.techmall-quotes-header h2 {
    color: #2c3e50;
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.techmall-new-quote-btn {
    background: linear-gradient(135deg, #28a745, #218838);
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.techmall-new-quote-btn:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.techmall-quotes-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.techmall-quotes-table th {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: #ffffff;
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.techmall-quotes-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    font-size: 14px;
}

.techmall-quotes-table tr:last-child td {
    border-bottom: none;
}

.techmall-quotes-table tr:nth-child(even) {
    background: #f8f9fa;
}

.techmall-quote-number {
    font-weight: 700;
    color: #0073aa;
    font-size: 16px;
}

.techmall-quote-date {
    color: #6c757d;
    font-size: 14px;
}

.techmall-quote-amount {
    font-weight: 700;
    color: #28a745;
    font-size: 16px;
}

.techmall-quote-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.techmall-status-pending {
    background: #fff3cd;
    color: #856404;
}

.techmall-status-accepted {
    background: #d4edda;
    color: #155724;
}

.techmall-status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.techmall-status-expired {
    background: #f8d7da;
    color: #721c24;
}

.techmall-quote-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.techmall-view-btn,
.techmall-pdf-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.techmall-view-btn {
    background: #0073aa;
    color: #ffffff;
}

.techmall-view-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.techmall-pdf-btn {
    background: #ff6b35;
    color: #ffffff;
}

.techmall-pdf-btn:hover {
    background: #e55a2b;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .techmall-quote-form {
        margin: 20px;
        padding: 20px;
    }
    
    .techmall-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .techmall-form-col {
        margin-bottom: 20px;
        min-width: 100%;
    }
    
    .techmall-quotes-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .techmall-quotes-table {
        font-size: 12px;
    }
    
    .techmall-quotes-table th,
    .techmall-quotes-table td {
        padding: 12px 15px;
    }
    
    .techmall-quote-actions {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .techmall-view-btn,
    .techmall-pdf-btn {
        justify-content: center;
    }
    
    .techmall-quote-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    
    .techmall-quote-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .techmall-quote-footer {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .techmall-quote-form {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 15px;
    }
    
    .techmall-quotes-list {
        margin: 20px 0;
        padding: 0 10px;
    }
    
    .techmall-quotes-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 11px;
    }
    
    .techmall-quotes-table th,
    .techmall-quotes-table td {
        padding: 8px 10px;
    }
    
    .techmall-quote-header h2 {
        font-size: 20px;
    }
    
    .techmall-pdf-button,
    .techmall-accept-button,
    .techmall-decline-button,
    .techmall-print-button {
        font-size: 12px;
        padding: 10px 15px;
    }
}

/* Print Styles */
@media print {
    .techmall-quote-actions,
    .techmall-new-quote-btn {
        display: none !important;
    }
    
    .techmall-quotes-table {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .techmall-quotes-table th {
        background: #f0f0f0 !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .techmall-quote-status {
        border: 1px solid #000;
        background: #fff !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.techmall-quote-form {
    animation: fadeInUp 0.6s ease-out;
}

.techmall-success-message,
.techmall-error-message {
    animation: fadeInUp 0.4s ease-out;
}

/* Loading States */
.techmall-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.techmall-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
