/* public/css/main.css */

/* 1. Base Structure & Layout */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Prompt', sans-serif;
    background-color: #f0f2f5;
}

.main-content {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
    background-color: white;
    border-top: 1px solid #dee2e6;
    padding: 20px 0;
}

/* 2. Header Style */
.header-blue {
    padding: 45px 0;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

/* 3. Menu & Cards */
.menu-card, .card-menu {
    border: none;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
    height: 100%;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    background-color: white;
}

.menu-card:hover, .card-menu:hover {
    transform: translateY(-12px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;
    border-bottom: 4px solid #0d6efd !important;
}

.icon-box {
    width: 110px;
    height: 110px;
    line-height: 110px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-primary-soft { background-color: rgba(13, 110, 253, 0.08); }
.bg-success-soft { background-color: rgba(25, 135, 84, 0.08); }

.hover-scale {
    transition: transform 0.2s ease;
}

.hover-scale:hover {
    transform: translateY(-8px);
}

/* 4. Forms & Inputs */
label { letter-spacing: 0.5px; }

.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
}

/* 5. Validation States */
.form-control.is-valid {
    border-color: #198754 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right calc(0.375em + 0.1875rem) center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

.form-control.is-invalid {
    border-color: #dc3545 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right calc(0.375em + 0.1875rem) center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

.form-floating > .form-control.is-valid,
.form-floating > .form-control.is-invalid {
    padding-right: 3rem !important;
}

/* 6. Buttons & Misc */
button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-action {
    padding: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: block;
    color: white !important;
}

.upload-zone:hover { 
    background-color: #e2e8f0 !important; 
    border-color: #94a3b8 !important; 
}