/* Web Portal Responsive Enhancements */

/* Step wizard styling */
.stepwizard {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.setup-panel {
    display: flex;
    gap: 40px;
    position: relative;
}

.stepwizard-step {
    text-align: center;
    position: relative;
    z-index: 1;
    display: block;
}

.stepwizard-step p {
    margin-top: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.btn-circle {
    width: 50px;
    height: 50px;
    text-align: center;
    padding: 13px 0;
    font-size: 18px;
    line-height: 1.428571429;
    border-radius: 50%;
    border: 2px solid #ccc;
    transition: all 0.3s ease;
}

.btn-default {
    background-color: #f0f0f0;
    color: #666;
    border-color: #ccc;
}

.btn-warning {
    background-color: #ffc107;
    color: white;
    border-color: #ffc107;
}

.btn-circle:hover {
    transform: scale(1.1);
}

.stepwizard-row::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 25px;
    width: calc(100% - 50px);
    height: 2px;
    background-color: #ccc;
    z-index: 0;
}

.stepwizard-step .btn-warning::after {
    content: '';
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background-color: #ffc107;
    z-index: -1;
}

/* Mobile: Show only active step */
@media (max-width: 768px) {
    .stepwizard-step {
        display: none;
    }
    
    .stepwizard-step.active {
        display: block;
    }
    
    .setup-panel {
        justify-content: center;
    }
}

/* Medical animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

.medical-icon-animated {
    animation: pulse 2s ease-in-out infinite;
}

.floating-pills {
    position: absolute;
    opacity: 0.1;
    pointer-events: none;
    z-index: -1;
}

.pill {
    position: absolute;
    width: 20px;
    height: 8px;
    background: linear-gradient(45deg, #ffc107, #28a745);
    border-radius: 10px;
    animation: float 3s ease-in-out infinite;
}

.pill:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.pill:nth-child(2) { top: 20%; right: 10%; animation-delay: 0.5s; }
.pill:nth-child(3) { top: 30%; left: 15%; animation-delay: 1s; }
.pill:nth-child(4) { top: 40%; right: 20%; animation-delay: 1.5s; }
.pill:nth-child(5) { top: 50%; left: 10%; animation-delay: 2s; }
.pill:nth-child(6) { top: 60%; right: 5%; animation-delay: 2.5s; }

.stethoscope-bg {
    position: absolute;
    top: 20%;
    right: 5%;
    font-size: 100px;
    opacity: 0.05;
    transform: rotate(15deg);
    z-index: -1;
}

/* Mobile card icon animations */
@media (max-width: 768px) {
    .clickable-card .fa {
        transition: all 0.3s ease;
    }
    
    .clickable-card:hover .fa-capsules,
    .clickable-card:active .fa-capsules {
        animation: heartbeat 1s ease-in-out;
        color: #e74c3c !important;
    }
    
    .clickable-card:hover .fa-medkit,
    .clickable-card:active .fa-medkit {
        animation: pulse 1s ease-in-out;
        color: #2ecc71 !important;
    }
    
    .clickable-card:hover .fa-syringe,
    .clickable-card:active .fa-syringe {
        animation: float 1s ease-in-out;
        color: #3498db !important;
    }
    
    .clickable-card:hover .fa-box-open,
    .clickable-card:active .fa-box-open {
        animation: pulse 1s ease-in-out;
        color: #9b59b6 !important;
    }
    
    /* Interactive touch effects */
    .clickable-card:active {
        transform: scale(0.98);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    /* Touch ripple effect */
    .clickable-card {
        position: relative;
        overflow: hidden;
    }
    
    .clickable-card::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }
    
    .clickable-card:active::before {
        width: 300px;
        height: 300px;
    }
}
    
    /* Mobile header animations */
    .mobile-medical-header {
        position: relative;
        overflow: hidden;
    }
    
    .medical-cross {
        position: absolute;
        color: rgba(255, 193, 7, 0.1);
        font-size: 24px;
        z-index: -1;
        animation: float 4s ease-in-out infinite;
    }
    
    .cross-1 { top: 10%; left: 10%; animation-delay: 0s; }
    .cross-2 { top: 15%; right: 15%; animation-delay: 1s; }
    .cross-3 { bottom: 20%; left: 20%; animation-delay: 2s; }
    .cross-4 { bottom: 15%; right: 10%; animation-delay: 3s; }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
    
    .col-sm-6 {
        margin-bottom: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .clickable-card .card-body {
        min-height: 250px;
    }
    
    /* Header section mobile */
    .fa-shield-alt {
        font-size: 48px !important;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .stepwizard {
        flex-wrap: wrap;
    }
    
    .setup-panel {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

/* Clickable cards styling */
.clickable-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e3e6f0;
}

.clickable-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #ffc107;
}

.clickable-card .card-body {
    height: 100%;
    min-height: 280px;
}

.clickable-card .btn {
    pointer-events: none;
    border: none;
}

/* Equal height cards */
.h-100 {
    height: 100% !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.mt-auto {
    margin-top: auto !important;
}

/* Responsive brand text */
@media (max-width: 992px) {
    .navbar-brand {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 0.9rem;
    }
}

/* Simple visual improvements */
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    transition: all 0.2s ease;
}