/* Custom Styles for Azure Quotation System */

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        padding: 0;
        margin: 0;
    }
    
    .print-area {
        padding: 20mm;
        max-width: 100%;
    }
    
    .page-break {
        page-break-after: always;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Quotation Item Card */
.quotation-item-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    background: #f9fafb;
    transition: all 0.3s ease;
}

.quotation-item-card:hover {
    background: #f3f4f6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Quotation List Item */
.quotation-list-item {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.quotation-list-item:hover {
    background: #f3f4f6;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.quotation-list-item.active {
    background: #dbeafe;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.draft {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.sent {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.approved {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* Loading Spinner */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Printable Quotation Styles */
.print-quotation-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #3b82f6;
}

.print-quotation-title {
    font-size: 32px;
    font-weight: bold;
    color: #1e40af;
    margin-bottom: 8px;
}

.print-quotation-number {
    font-size: 18px;
    color: #6b7280;
}

.print-section {
    margin-bottom: 30px;
}

.print-section-title {
    font-size: 18px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.print-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.print-table th {
    background: #f3f4f6;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border: 1px solid #d1d5db;
}

.print-table td {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    color: #1f2937;
}

.print-table tbody tr:hover {
    background: #f9fafb;
}

.print-total-section {
    background: #f3f4f6;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.print-total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 16px;
}

.print-grand-total {
    border-top: 2px solid #3b82f6;
    padding-top: 12px;
    margin-top: 12px;
    font-size: 24px;
    font-weight: bold;
    color: #1e40af;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .print-quotation-header {
        flex-direction: column;
    }
    
    .grid.grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

/* Animation for form transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* Custom Input Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    ring: 2px;
    ring-color: #3b82f6;
    border-color: transparent;
}

/* Number input styling */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
}

/* Category badges */
.category-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.category-compute {
    background: #dbeafe;
    color: #1e40af;
}

.category-storage {
    background: #fef3c7;
    color: #92400e;
}

.category-networking {
    background: #d1fae5;
    color: #065f46;
}

.category-database {
    background: #e0e7ff;
    color: #3730a3;
}

.category-security {
    background: #fee2e2;
    color: #991b1b;
}

.category-other {
    background: #f3f4f6;
    color: #374151;
}
