/* Main Stylesheet */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --bg-light-purple: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light-purple);
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
header {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Updated Traffic Light Animation with Enhanced Glow */
.traffic-light-horizontal {
    background-color: #333;
    border-radius: 30px;
    padding: 10px;
    display: flex;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.light {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 15px;
    position: relative;
    opacity: 0.3;
    transition: all 0.5s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.light::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    box-shadow: 0 0 25px currentColor;
    opacity: 0;
    transition: opacity 0.5s ease;
    filter: blur(5px);
}

.light.active {
    opacity: 1;
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.light.active::after {
    opacity: 1;
    box-shadow: 0 0 30px currentColor, 0 0 50px currentColor;
}

.red-light {
    background-color: #ff3b30;
    color: #ff3b30;
}

.amber-light {
    background-color: #ffcc00;
    color: #ffcc00;
}

.green-light {
    background-color: #4cd964;
    color: #4cd964;
}

/* Enhanced Traffic light animation */
@keyframes traffic-light-sequence {
    0%, 100% {
        opacity: 0.3;
        box-shadow: none;
    }
    20%, 80% {
        opacity: 1;
        box-shadow: 0 0 30px currentColor, 0 0 50px currentColor;
    }
}

.traffic-light-animation .red-light {
    animation: traffic-light-sequence 9s infinite;
}

.traffic-light-animation .amber-light {
    animation: traffic-light-sequence 9s infinite 3s;
}

.traffic-light-animation .green-light {
    animation: traffic-light-sequence 9s infinite 6s;
}

/* Pulsing effect for active light */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 30px currentColor;
    }
    50% {
        box-shadow: 0 0 50px currentColor;
    }
}

.light.active {
    animation: pulse-glow 2s infinite;
}

/* Scrolling Text Styles */
.scrolling-text {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 0;
    margin-top: -20px;
    font-size: 1.2rem;
    font-weight: bold;
}

.scrolling-text marquee {
    padding: 5px 0;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
}

/* Button Styles */
.btn {
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

/* Form Styles */
.form-control, .form-select {
    border-radius: 50px;
    padding: 10px 15px;
    border: 1px solid #ddd;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

/* Alert Styles */
.alert {
    border-radius: 10px;
}

/* Traffic Light Animation */
@keyframes traffic-light {
    0% { background-color: #ff3b30; }
    33% { background-color: #ffcc00; }
    66% { background-color: #4cd964; }
    100% { background-color: #ff3b30; }
}

.traffic-light {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    animation: traffic-light 3s infinite;
}

/* Updated Special Elements */
.half-circle {
    width: 360px;
    height: 170px;
    background-color: var(--primary-color);
    border-radius: 160px 160px 0 0; /* Adjusted to half of width */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    margin-top: 20px;
}

.clock-container {
    text-align: center;
    color: white;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#digital-clock {
    font-size: 2.0rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 0.3rem;
}

#current-date {
    font-size: 1.3rem;
    line-height: 1.2;
    font-weight: 500;
}

/* Adjust clock text sizing if needed */
#digital-clock {
    font-size: 2.2rem; /* Slightly larger clock */
    margin-bottom: 0.5rem;
}

#current-date {
    font-size: 1.1rem; /* Slightly larger date */
}

.corner-ribbon {
    width: 200px;
    background: #e43;
    position: absolute;
    top: 25px;
    left: -50px;
    text-align: center;
    line-height: 30px;
    letter-spacing: 1px;
    color: #f0f0f0;
    transform: rotate(-45deg);
    z-index: 1;
}

.ribbon-shadow {
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
}

.ribbon-bevel:before, .ribbon-bevel:after {
    content: "";
    position: absolute;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card {
        margin-bottom: 20px;
    }
    
    .scrolling-text {
        font-size: 1rem;
    }
}

/* Footer positioning */
.footer {
    margin-top: auto;
}

.profile-image-lg {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 5px solid #f8f9fa;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.profile-image-container {
    position: relative;
    width: fit-content;
    margin: 0 auto;
}

.profile-image-sm {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid #f8f9fa;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* Add this to your existing style.css */
#calendar {
    margin-bottom: 25px; /* Adds space between calendar and footer */
}

.fc .fc-toolbar.fc-header-toolbar {
    margin-bottom: 0.5em;
}

.fc .fc-view-harness {
    min-height: 600px;
}

/* Calendar card specific styles */
.card-body {
    padding-bottom: 25px; /* Extra padding at bottom */
}

/* Footer spacing */
.footer {
    padding-top: 25px; /* Ensures consistent spacing */
}

