/**
 * Template Improvements CSS
 * FPTB Legacy Portal
 *
 * This file contains improved styles for legacy templates,
 * moving inline styles to CSS and adding modern enhancements.
 *
 * Created: 2026-01-12
 * Phase 3: Template Improvements
 */

/* ==========================================================================
   Accessibility Improvements
   ========================================================================== */

/* Skip to main content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #0d6efd;
    color: #fff;
    padding: 8px 16px;
    z-index: 9999;
    text-decoration: none;
    font-weight: 500;
    border-radius: 0 0 4px 0;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Focus visible improvements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* ==========================================================================
   Login Form Improvements
   ========================================================================== */

.login-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.login-card h4 {
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.login-card .form-group {
    margin-bottom: 15px;
}

.login-card .form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.login-card .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.login-card .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
    outline: none;
}

.login-card .btn-login {
    width: 100%;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    margin-top: 10px;
}

/* Error alert in login form */
.login-card .alert {
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

/* ==========================================================================
   Support Card
   ========================================================================== */

.support-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.support-card h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
}

.support-card .support-item {
    margin-bottom: 15px;
    padding: 10px;
    background: #fff;
    border-radius: 4px;
    border-left: 3px solid #0d6efd;
}

.support-card .support-item p {
    margin: 0 0 5px 0;
    font-weight: 500;
    color: #555;
}

.support-card .support-item small {
    color: #0d6efd;
    font-size: 14px;
}

/* ==========================================================================
   Registration Menu Improvements
   ========================================================================== */

#action_pane {
    padding: 10px;
}

#action_pane .nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

#action_pane .nav-menu li {
    margin-bottom: 8px;
}

#action_pane .nav-menu .btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 500;
    transition: transform 0.1s, box-shadow 0.2s;
}

#action_pane .nav-menu .btn:hover {
    transform: translateX(3px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#action_pane .nav-menu .btn-info {
    background: linear-gradient(135deg, #0dcaf0, #0aa2c0);
    border: none;
}

#action_pane .nav-menu .btn-success {
    background: linear-gradient(135deg, #198754, #157347);
    border: none;
}

#action_pane .nav-menu .btn-danger {
    background: linear-gradient(135deg, #dc3545, #bb2d3b);
    border: none;
}

/* ==========================================================================
   Homepage Improvements
   ========================================================================== */

.hero-section {
    padding: 20px 0;
}

.logo-container {
    text-align: center;
    padding: 20px;
}

.logo-container img {
    max-width: 100%;
    height: auto;
}

.quick-links {
    padding: 15px;
}

.quick-links h4 {
    margin-bottom: 15px;
    color: #333;
}

.quick-links .btn {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 12px 20px;
    font-weight: 500;
    border-radius: 6px;
    transition: transform 0.1s;
}

.quick-links .btn:hover {
    transform: scale(1.02);
}

/* Carousel improvements */
.carousel-card {
    min-height: 200px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.carousel-card h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.carousel-card p {
    color: #666;
    line-height: 1.6;
}

/* Instructions card */
.instructions-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.instructions-card h4 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0d6efd;
}

.instructions-card ol {
    padding-left: 20px;
    margin: 0;
}

.instructions-card li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #555;
}

.instructions-card li::marker {
    color: #0d6efd;
    font-weight: bold;
}

/* External links section */
.external-links {
    padding: 15px;
}

.external-links h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.external-links .nav-pills {
    flex-direction: column;
}

.external-links .nav-pills li a {
    display: block;
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 4px;
    color: #0d6efd;
    text-decoration: none;
    transition: background 0.2s;
}

.external-links .nav-pills li a:hover {
    background: #e9ecef;
}

/* ==========================================================================
   General Improvements
   ========================================================================== */

/* Better HR styling */
hr {
    border: none;
    border-top: 1px solid #dee2e6;
    margin: 20px 0;
}

/* Improved blockquote */
blockquote {
    padding: 10px 15px;
    margin: 0 0 15px 0;
    border-left: 3px solid #0d6efd;
    background: #f8f9fa;
    border-radius: 0 4px 4px 0;
}

blockquote p {
    margin: 0 0 5px 0;
}

blockquote small {
    color: #6c757d;
}

/* Well improvements */
.well {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Card-like containers */
.content-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Responsive Improvements
   ========================================================================== */

@media (max-width: 767px) {
    .login-card {
        margin: 0 -10px 20px;
        border-radius: 0;
    }

    .quick-links .btn {
        font-size: 14px;
        padding: 10px 15px;
    }

    .instructions-card {
        padding: 15px;
    }

    #action_pane {
        margin-bottom: 20px;
    }

    #action_pane .nav-menu .btn {
        padding: 12px 15px;
    }
}

/* ==========================================================================
   Print Improvements
   ========================================================================== */

@media print {
    .login-card,
    .support-card,
    #action_pane,
    .quick-links {
        display: none;
    }

    .instructions-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
