﻿/* ASP.NET MVC Site Styles */

/* logo animation */
.logo-pulse {
    width: 1rem;
    height: 1rem;
    background-color: #0d6efd;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

/* Cycle indicators */
.cycle-indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.legend-color {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.critical-indicator {
    width: 0.5rem;
    height: 0.5rem;
    background-color: #dc3545;
    border-radius: 50%;
    margin-right: 0.75rem;
}



/* Moon Phase Visuals */
.moon-indicator {
    font-size: 1.5rem;
}

.moon-event-indicator {
    font-size: 1.2rem;
}

.moon-phase-visual {
    padding: 20px;
}

.moon-circle {
    width: 80px;
    height: 80px;
    border: 3px solid #34495e;
    border-radius: 50%;
    position: relative;
    background: #2c3e50;
    margin: 0 auto;
    overflow: hidden;
}

.moon-illumination {
    height: 100%;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-radius: 50%;
    transition: width 0.3s ease;
}


/* Card hover effects */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

/* Navigation active state */
.nav-link.active {
    font-weight: 600;
    color: #0d6efd !important;
}

/* Chart container */
#biorhythmChart {
    max-height: 400px;
}

/* Form validation styles (classic MVC) */
.field-validation-error {
    color: #dc3545;
    font-size: 0.875rem;
}

.field-validation-valid {
    display: none;
}

.input-validation-error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.validation-summary-errors {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 0.375rem;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
}

.validation-summary-valid {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-5 {
        font-size: 2rem;
    }

    .cycle-indicator,
    .legend-color {
        width: 0.6rem;
        height: 0.6rem;
    }
}

/* Bootstrap utility additions */
.text-decoration-none:hover {
    text-decoration: none !important;
}

/* Custom button styles */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

    .btn-primary:hover {
        background-color: #0b5ed7;
        border-color: #0a58ca;
    }

/* Form control focus */
.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Alert styles for warnings */
.border-warning {
    border-color: #ffc107 !important;
}

.bg-warning.bg-opacity-10 {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.bg-warning.bg-opacity-25 {
    background-color: rgba(255, 193, 7, 0.25) !important;
}

/* Classic MVC form styling */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* Navbar brand link styling */
/*.navbar-brand {
    text-decoration: none;
    color: inherit;
}*/

.navbar-brand:hover {
    text-decoration: none;
    color: inherit;
}

/* Header shadow */
header.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 38px;
    font-weight: 600;
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /*gap: 0.6rem;*/
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    /*width: 100%;*/ /* Ensures full-width for centering */
    width: 75%;
    padding: 1rem 0; /* Optional: adds vertical breathing room */
}

.logo-pulse {
    width: 32px; /* Slightly larger to match the bigger text */
    height: 32px;
    /*background: radial-gradient(circle, #0d6efd 40%, transparent 41%);*/
    background: radial-gradient(circle, white 40%, transparent 41%);
    border-radius: 50%;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.4);
        opacity: 0.6;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}


/* Logo animation */
.logo-wave {
    width: 1.5rem;
    height: 0.8rem;
    position: relative;
    overflow: hidden;
}

    .logo-wave::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, #0d6efd, transparent);
        border-radius: 0.4rem;
        animation: wave 2s infinite;
    }

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

    50% {
        left: 100%;
    }

    100% {
        left: -100%;
    }
}
