/* Calendar styles */
.fc-appointment {
    --fc-event-dot-color: #10b981;
}
.fc-meeting {
    --fc-event-dot-color: #3b82f6;
}

.fc-appointment .fc-event-main {
    background-color: rgba(16, 185, 129, 0.12);
}
.fc-meeting .fc-event-main {
    background-color: rgba(59, 130, 246, 0.12);
}

.fc-block {
    background-color: rgba(239, 68, 68, 0.15) !important;
}
.fc-event {
    border-radius: 8px;
}

/* Custom Bootstrap Utility Classes */
.hover-shadow {
    transition: all 0.3s ease;
}
.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px);
}

.transition-all {
    transition: all 0.3s ease-in-out;
}

.backdrop-blur {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Past Date Shading */
.fc-day-past {
    background-color: #f9fafb !important;
    cursor: not-allowed;
}

.fc-day-past .fc-daygrid-day-number {
    color: #9ca3af;
}

/* Guardian Portal Styles */
.guardian-body {
    background: #667eea;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
}

.guardian-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.guardian-logo-container {
    background: #667eea;
    padding: 0.75rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.guardian-logo {
    height: 32px;
    width: 32px;
    filter: brightness(0) invert(1);
}

.guardian-title {
    color: #667eea;
    font-size: 1.25rem;
}

.guardian-user-btn {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.guardian-user-btn:hover {
    background-color: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.guardian-avatar {
    background: #667eea;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guardian-dropdown {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    margin-top: 0.5rem;
}

.guardian-logout-btn {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.guardian-logout-btn:hover {
    background-color: #fee2e2;
    color: #dc2626;
}

.guardian-content {
    padding: 2rem 0;
}

.guardian-footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: auto;
}

.guardian-link {
    color: #667eea;
    transition: color 0.3s ease;
}

.guardian-link:hover {
    color: #764ba2;
}

.guardian-brand {
    color: #667eea;
    font-weight: 600;
}

/* Dashboard Styles */
.guardian-welcome-card {
    background: #667eea;
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    overflow: hidden;
    position: relative;
}

.guardian-welcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.guardian-welcome-avatar {
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.guardian-welcome-decoration {
    opacity: 0.3;
    transform: rotate(-15deg);
}

.guardian-stat-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.guardian-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.guardian-stat-total {
    background: #667eea;
}

.guardian-stat-pending {
    background: #f59e0b;
}

.guardian-stat-enrolled {
    background: #10b981;
}

.guardian-stat-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.guardian-stat-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
}

.guardian-table-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.guardian-table-header {
    background: #667eea;
    border: none;
    padding: 1.5rem 2rem;
}

.guardian-table {
    margin-bottom: 0;
}

.guardian-table-head th {
    background: rgba(102, 126, 234, 0.1);
    border: none;
    padding: 1rem 1rem 1rem 2rem;
    font-weight: 600;
    color: #667eea;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guardian-table-row {
    transition: all 0.3s ease;
    border: none;
}

.guardian-table-row:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: scale(1.01);
}

.guardian-table-row td {
    padding: 1.25rem 1rem 1.25rem 2rem;
    border: none;
    vertical-align: middle;
}

.guardian-status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guardian-btn-view {
    background: #667eea;
    border: none;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.guardian-btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.guardian-empty-state {
    background: #667eea;
    border: none;
}

.guardian-empty-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

/* Auth Pages Styles */
.guardian-auth-body {
    background: #667eea;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

.guardian-auth-body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -50%) rotate(180deg); }
}

.guardian-auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    padding: 0 1rem;
}

.guardian-auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.guardian-auth-logo {
    background: #667eea;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.guardian-auth-logo-img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.guardian-auth-title {
    color: #1f2937;
    font-weight: 700;
    font-size: 2rem;
}

.guardian-auth-subtitle {
    font-size: 1rem;
    margin-bottom: 0;
}

.guardian-auth-alert {
    background: #fee2e2;
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #dc2626;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.guardian-auth-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    display: block;
}

.guardian-auth-input-group {
    position: relative;
}

.guardian-auth-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.guardian-auth-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.guardian-auth-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: rgba(255, 255, 255, 1);
}

.guardian-auth-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.guardian-auth-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.guardian-auth-btn {
    width: 100%;
    background: #667eea;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Removed shimmer effect */

.guardian-auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.guardian-auth-btn-text {
    margin-right: 0.5rem;
}

.guardian-auth-btn-icon {
    transition: transform 0.3s ease;
}

.guardian-auth-btn:hover .guardian-auth-btn-icon {
    transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .guardian-header {
        padding: 0.75rem 0;
    }

    .guardian-logo-container {
        padding: 0.5rem;
    }

    .guardian-title {
        font-size: 1.1rem;
    }

    .guardian-user-btn {
        padding: 0.5rem;
    }

    .guardian-avatar {
        padding: 0.375rem;
        margin-right: 0.5rem;
    }

    .guardian-avatar i {
        font-size: 1rem;
    }

    .guardian-welcome-card .card-body {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }

    .guardian-welcome-avatar {
        margin-bottom: 1rem;
        margin-right: 0;
    }

    .guardian-stat-card {
        margin-bottom: 1rem;
    }

    .guardian-table-header {
        padding: 1rem;
    }

    .guardian-table-header h5 {
        font-size: 1.1rem;
    }

    .guardian-auth-container {
        padding: 0 1rem;
        max-width: 100%;
    }

    .guardian-auth-card .card-body {
        padding: 2rem 1.5rem;
    }

    .guardian-auth-title {
        font-size: 1.75rem;
    }

    .row.g-3 .col-md-6 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .guardian-content {
        padding: 1rem 0;
    }

    .guardian-welcome-card {
        margin: 0 1rem;
        border-radius: 16px;
    }

    .guardian-stat-card {
        margin: 0 1rem;
        border-radius: 16px;
    }

    .guardian-table-card {
        margin: 0 1rem;
        border-radius: 16px;
    }

    .guardian-auth-card {
        border-radius: 16px;
    }

    .guardian-auth-card .card-body {
        padding: 1.5rem 1rem;
    }

    .row.g-3 .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Additional Animations and Effects */
.guardian-fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.guardian-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Loading states */
.guardian-loading {
    position: relative;
    overflow: hidden;
}

.guardian-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.4);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}
