/* Quote Request System Styles */
.qrs-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.qrs-form-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #007cba;
}

.qrs-form-header h2 {
    color: #007cba;
    margin-bottom: 10px;
}

.qrs-form-header p {
    color: #666;
    font-size: 16px;
}

.qrs-form-section {
    margin-bottom: 30px;
}

.qrs-form-section h3 {
    color: #007cba;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

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

.qrs-form-group {
    flex: 1;
    margin-bottom: 15px;
}

.qrs-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.qrs-form-group input[type="text"],
.qrs-form-group input[type="email"],
.qrs-form-group input[type="tel"],
.qrs-form-group input[type="number"],
.qrs-form-group textarea,
.qrs-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.qrs-form-group input:focus,
.qrs-form-group textarea:focus,
.qrs-form-group select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.qrs-form-group small {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.required {
    color: #d63384;
}

.qrs-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.qrs-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.qrs-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.qrs-checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #eee;
    border: 1px solid #ddd;
    border-radius: 3px;
    transition: all 0.3s;
}

.qrs-checkbox:hover input ~ .checkmark {
    background-color: #ccc;
}

.qrs-checkbox input:checked ~ .checkmark {
    background-color: #007cba;
    border-color: #007cba;
}

.qrs-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.qrs-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.qrs-checkbox .checkmark:after {
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.qrs-form-group input[type="file"] {
    padding: 8px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s;
}

.qrs-form-group input[type="file"]:hover {
    border-color: #007cba;
    background: #f0f8ff;
}

.qrs-form-actions {
    text-align: center;
    margin-top: 30px;
}

.qrs-submit-btn {
    background: #007cba;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.qrs-submit-btn:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
}

.qrs-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.qrs-messages {
    margin-top: 20px;
}

.qrs-message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.qrs-message.success {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.qrs-message.error {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

/* Admin Dashboard Styles */
.qrs-dashboard {
    margin-top: 20px;
}

.qrs-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.qrs-stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.qrs-stat-icon {
    width: 60px;
    height: 60px;
    background: #007cba;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qrs-stat-icon .dashicons {
    font-size: 24px;
    color: white;
}

.qrs-stat-content {
    flex: 1;
}

.qrs-stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #007cba;
    line-height: 1;
    margin-bottom: 5px;
}

.qrs-stat-label {
    font-size: 14px;
    color: #666;
}

.qrs-dashboard-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.qrs-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.qrs-section-header h2 {
    color: #007cba;
    margin: 0;
}

.qrs-table-container {
    overflow-x: auto;
}

.qrs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.qrs-table th,
.qrs-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.qrs-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.qrs-table tr:hover {
    background: #f8f9fa;
}

.qrs-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.qrs-status-badge.status-processing {
    background: #d1ecf1;
    color: #0c5460;
}

.qrs-status-badge.status-completed {
    background: #d1e7dd;
    color: #0f5132;
}

.qrs-status-badge.status-cancelled {
    background: #f8d7da;
    color: #842029;
}

.qrs-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.qrs-empty-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.qrs-empty-state h3 {
    margin-bottom: 10px;
    color: #333;
}

.qrs-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.qrs-quick-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.qrs-quick-action:hover {
    background: #e9ecef;
    border-color: #007cba;
    color: #007cba;
    text-decoration: none;
}

.qrs-quick-action .dashicons {
    font-size: 20px;
}

/* Quote Detail Styles */
.qrs-quote-detail {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.qrs-quote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #007cba;
}

.qrs-quote-info h2 {
    color: #007cba;
    margin: 0 0 10px 0;
}

.qrs-quote-meta {
    display: flex;
    gap: 15px;
    align-items: center;
}

.qrs-quote-date {
    color: #666;
    font-size: 14px;
}

.qrs-quote-section {
    margin-bottom: 30px;
}

.qrs-quote-section h3 {
    color: #007cba;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

.qrs-quote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.qrs-quote-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.qrs-quote-field.full-width {
    grid-column: 1 / -1;
}

.qrs-quote-field label {
    font-weight: 600;
    color: #333;
}

.qrs-quote-field span {
    color: #666;
}

.qrs-files-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qrs-file-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.qrs-file-name {
    font-weight: 600;
    color: #333;
}

.qrs-file-size,
.qrs-file-type {
    color: #666;
    font-size: 14px;
}

/* Export Styles */
.qrs-export-section {
    margin-top: 20px;
}

.qrs-export-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.qrs-export-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.qrs-export-card:hover {
    border-color: #007cba;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 124, 186, 0.2);
}

.qrs-export-icon {
    width: 60px;
    height: 60px;
    background: #007cba;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.qrs-export-icon .dashicons {
    font-size: 24px;
    color: white;
}

.qrs-export-card h3 {
    color: #007cba;
    margin-bottom: 10px;
}

.qrs-export-card p {
    color: #666;
    margin-bottom: 15px;
}

.qrs-export-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.qrs-export-card li {
    color: #666;
    margin-bottom: 5px;
}

.qrs-export-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.qrs-export-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.qrs-export-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.qrs-export-detail-item .dashicons {
    color: #28a745;
}

.qrs-export-history {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.qrs-export-history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 10px;
}

.qrs-export-time {
    margin-left: auto;
    color: #666;
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .qrs-form-row {
        flex-direction: column;
    }
    
    .qrs-checkbox-group {
        flex-direction: column;
    }
    
    .qrs-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .qrs-quote-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .qrs-quote-grid {
        grid-template-columns: 1fr;
    }
    
    .qrs-export-cards {
        grid-template-columns: 1fr;
    }
}

/* Loading Animation */
.spin {
    animation: spin 1s linear infinite;
}

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

/* Form Validation */
.qrs-form-group.error input,
.qrs-form-group.error textarea,
.qrs-form-group.error select {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

.qrs-form-group .error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

/* Admin specific styles */
.qrs-admin-section {
    margin-top: 20px;
}

.qrs-filters {
    display: flex;
    gap: 10px;
    align-items: center;
}

.qrs-filters select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.qrs-edit-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.qrs-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.qrs-form-actions .button {
    min-width: 120px;
}
