.query-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.query-tab {
    flex: 1;
    padding: 15px 20px;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.query-tab.active {
    background: #e55100;
    color: white;
    box-shadow: 0 2px 8px rgba(229, 81, 0, 0.3);
}

.query-tab:hover:not(.active) {
    background: #fff;
    color: #e55100;
}

.query-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.query-content {
    display: none;
}

.query-content.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #e55100;
    box-shadow: 0 0 0 3px rgba(229, 81, 0, 0.1);
}

.btn-query {
    background: linear-gradient(135deg, #e55100, #ff6f00);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-query:hover {
    background: linear-gradient(135deg, #d84315, #e65100);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(229, 81, 0, 0.3);
}

.btn-query:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.query-result {
    display: none;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-top: 30px;
}

.result-header {
    background: linear-gradient(135deg, #e55100, #ff6f00);
    color: white !important;
    padding: 20px 30px;
    text-align: center;
}

.result-header h4 {
    color: white !important;
    margin: 0;
}

.result-content {
    padding: 30px;
}

.appointment-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.appointment-card:hover {
    border-color: #e55100;
    box-shadow: 0 5px 15px rgba(229, 81, 0, 0.1);
}

.appointment-status {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-confirmed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

.info-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-item i {
    color: #e55100;
    margin-right: 10px;
    width: 20px;
}

.info-item strong {
    margin-right: 8px;
    color: #333;
}

.appointment-actions {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
    text-align: center;
}

.btn-cancel {
    background: #dc3545;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3);
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-results i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 20px;
}

.loading {
    text-align: center;
    padding: 40px;
}

.loading i {
    font-size: 24px;
    color: #e55100;
    animation: spin 1s linear infinite;
}

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

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    animation: successFadeIn 0.5s ease-in;
    box-shadow: 0 3px 15px rgba(40, 167, 69, 0.2);
}

@keyframes successFadeIn {
    0% { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@media (max-width: 768px) {
    .query-tabs {
        flex-direction: column;
    }
    
    .appointment-info {
        grid-template-columns: 1fr;
    }
    
    .query-form {
        padding: 20px;
    }
    
    .result-content {
        padding: 20px;
    }
}
.nice-select.open .list { overflow-y: scroll; height: 164px; }