:root {
    --primary-color: #3498db;
    --primary-light: #ebf5fe;
    --primary-dark: #2980b9;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --text-color: #2c3e50;
    --light-bg: #f5f7fa;
    --border-radius: 12px;
    --box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #3498db 0%, #9b59b6 100%);
    color: white;
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
}

.feature-card {
    height: 100%;
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
    border: none;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Calendar Styling */
.calendar-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.calendar-header {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    color: #6c757d;
    padding: 0.5rem 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.95rem;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    width: 2.5rem;
    height: 2.5rem;
}

.calendar-day:hover:not(.disabled):not(.invisible) {
    background-color: var(--primary-light);
    transform: scale(1.05);
}

.calendar-day.disabled {
    color: #ced4da;
    cursor: not-allowed;
}

.calendar-day.has-slots {
    font-weight: 600;
}

.calendar-day.has-slots:after {
    content: '';
    position: absolute;
    bottom: 5px;
    width: 5px;
    height: 5px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.calendar-day.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(52, 152, 219, 0.4);
}

.calendar-day.today {
    border: 2px solid var(--primary-color);
}

.month-nav {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.month-nav:hover {
    background-color: #e9ecef;
    transform: scale(1.1);
}

.month-nav:disabled,
.month-nav.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Second calendar */
#calendarView2 .calendar-days .calendar-day.active {
    background-color: #17a2b8; /* inny kolor dla drugiego kalendarza */
}

#calendarView2 .calendar-day.has-slots:after {
    background-color: #17a2b8;
}

/* Time slots styling */
.time-slots-container {
    max-height: 350px;
    overflow-y: auto;
    scrollbar-width: thin;
    border-radius: 8px;
    padding-right: 5px;
}

.time-slots-container::-webkit-scrollbar {
    width: 5px;
}

.time-slots-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.time-slots-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.time-slot {
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 8px;
    border-radius: 8px;
}

.time-slot:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: #d1d1d1;
}

.time-slot.selected {
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.2);
    background-color: var(--primary-light);
}

.time-slot .time {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-color);
}

.time-slot .details {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

/* Steps sidebar */
.steps-sidebar .nav-link {
    color: var(--text-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.steps-sidebar .nav-link:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.steps-sidebar .nav-link.active {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
    font-weight: 500;
}

.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.topic-card {
    cursor: pointer;
    transition: all 0.25s ease;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.topic-card.selected {
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .calendar-day {
        width: 2rem;
        height: 2rem;
        font-size: 0.85rem;
    }

    .calendar-header {
        font-size: 0.75rem;
    }

    .hero-section {
        padding: 2rem 1rem;
    }
}

/* Animation effects */
.fade-in {
    animation: fadeIn 0.3s ease;
}

.slide-up {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Confirmation page specific styles */
.border-success {
    border-color: var(--success-color) !important;
}

.bg-success {
    background-color: var(--success-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}