/* Custom CSS for Appointmently */

/* Custom color variables */
:root {
    --primary-bg: #F4F6FC;
    --primary-accent: #5C6AC4;
    --secondary-accent: #EEF1FA;
    --highlight-orange: #FFA500;
    --text-primary: #1E1E2F;
    --white-surface: #FFFFFF;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Progress indicator styles */
#progress-indicator {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#progress-bar {
    background: linear-gradient(90deg, var(--primary-accent) 0%, #4A5BB3 100%);
    box-shadow: 0 0 10px rgba(92, 106, 196, 0.3);
}

/* Enhanced animations */
@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Animation classes */
.slide-in-right {
    animation: slideInFromRight 0.5s ease-out;
}

.slide-in-left {
    animation: slideInFromLeft 0.5s ease-out;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.scale-in {
    animation: scaleIn 0.4s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

/* 3D Icon styles */
.icon-3d {
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.icon-3d:hover {
    transform: translateY(-2px) scale(1.05);
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.15));
}

/* Service image styles */
.service-image {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.service-image:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Service card hover effects */
.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.service-card:hover {
    border-color: var(--primary-accent);
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.service-card:hover .service-image {
    transform: scale(1.15);
    filter: brightness(1.1) contrast(1.1);
}

.service-card.selected {
    border-color: var(--primary-accent);
    background-color: var(--secondary-accent);
    transform: translateY(-2px);
}

.service-card.selected .service-image {
    transform: scale(1.1);
    filter: brightness(1.05);
}

/* Calendar styles */
.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .calendar-day {
        font-size: 1rem;
    }
}

.calendar-day:hover:not(.disabled) {
    background-color: var(--secondary-accent);
    color: var(--primary-accent);
}

.calendar-day.selected {
    background-color: var(--primary-accent);
    color: white;
}

.calendar-day.disabled {
    color: #D1D5DB;
    cursor: not-allowed;
}

.calendar-day.today {
    border: 2px solid var(--primary-accent);
}

/* Time slot styles */
.time-slot {
    padding: 8px 12px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .time-slot {
        padding: 12px 16px;
        font-size: 1rem;
    }
}

.time-slot:hover:not(.disabled) {
    border-color: var(--primary-accent);
    background-color: var(--secondary-accent);
    color: var(--primary-accent);
}

.time-slot.selected {
    background-color: var(--primary-accent);
    color: white;
    border-color: var(--primary-accent);
}

.time-slot.disabled {
    background-color: #F3F4F6;
    color: #9CA3AF;
    cursor: not-allowed;
}

/* Button styles */
.btn-primary {
    background-color: var(--primary-accent);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #4A5BB3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(92, 106, 196, 0.3);
}

.btn-secondary {
    background-color: #E5E7EB;
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #D1D5DB;
}

/* Summary card styles */
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: var(--secondary-accent);
    border-radius: 8px;
    margin-bottom: 8px;
}

@media (min-width: 640px) {
    .summary-item {
        padding: 16px;
    }
}

.summary-item:last-child {
    margin-bottom: 0;
}

/* Table styles */
table {
    border-collapse: collapse;
    width: 100%;
}

th {
    background-color: var(--secondary-accent);
    color: var(--text-primary);
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid #E5E7EB;
}

@media (min-width: 640px) {
    th {
        padding: 16px 24px;
    }
}

td {
    padding: 12px 16px;
    border-bottom: 1px solid #E5E7EB;
    vertical-align: top;
}

@media (min-width: 640px) {
    td {
        padding: 16px 24px;
    }
}

tr:hover {
    background-color: #F9FAFB;
}

tr:hover .service-image {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Form styles */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(92, 106, 196, 0.1);
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    background-color: white;
    transition: all 0.2s ease;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(92, 106, 196, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    transition: all 0.2s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(92, 106, 196, 0.1);
}

/* Contact section styles */
.contact-info-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #E5E7EB;
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-icon:hover .icon-3d {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

/* Stats section styles */
.stats-card {
    background: white;
    border-radius: 12px;
    padding: 16px 24px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

@media (min-width: 640px) {
    .stats-card {
        padding: 24px;
    }
}

.stats-card:hover {
    transform: translateY(-2px);
}

.stats-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-accent);
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .stats-number {
        font-size: 2.5rem;
    }
}

.stats-label {
    color: #6B7280;
    font-size: 0.875rem;
}

/* Modal styles */
.modal-overlay {
    backdrop-filter: blur(4px);
}

.modal-content {
    max-width: 500px;
    width: 90%;
}

/* Mobile menu styles */
#mobile-menu {
    transition: all 0.3s ease;
}

#mobile-menu.animate__fadeInDown {
    animation: fadeInDown 0.3s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-card {
        margin-bottom: 16px;
    }
    
    .time-slot {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .calendar-day {
        font-size: 14px;
    }
    
    .stats-card {
        padding: 16px;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    /* Table responsive */
    .table-responsive {
        overflow-x: auto;
    }
    
    table {
        min-width: 600px;
    }
    
    th, td {
        padding: 12px 16px;
    }
    
    /* Mobile-specific adjustments */
    .service-card {
        margin-bottom: 12px;
    }
    
    .service-card .service-image {
        height: 120px;
    }
    
    @media (min-width: 640px) {
        .service-card .service-image {
            height: 192px;
        }
    }
}

/* Touch-friendly interactions for mobile */
@media (max-width: 768px) {
    .service-card {
        min-height: 200px;
    }
    
    .service-card:active {
        transform: scale(0.98);
    }
    
    .time-slot:active {
        transform: scale(0.95);
    }
    
    .calendar-day:active {
        transform: scale(0.95);
    }
    
    /* Larger touch targets */
    button, .service-card, .time-slot, .calendar-day {
        min-height: 44px;
    }
    
    /* Better spacing for mobile */
    .space-y-3 > * + * {
        margin-top: 0.75rem;
    }
    
    .space-y-4 > * + * {
        margin-top: 1rem;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary-accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4A5BB3;
}

/* Focus styles for accessibility */
button:focus,
.service-card:focus,
.calendar-day:focus,
.time-slot:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: 2px solid var(--primary-accent);
    outline-offset: 2px;
}

/* Success message styles */
.success-message {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: #10B981;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
} 