/* Application Tracking Page Styles */

/* Hero Section */
.tracking-hero-section {
    min-height: 35vh;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #228B70 0%, #1e7a5e 100%);
    padding-top: 80px;
}

.tracking-hero-section .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #228B70 0%, #1e7a5e 100%);
    z-index: 1;
}

.tracking-hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.tracking-hero-section .hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
}

.tracking-hero-section .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tracking-hero-section .hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Tracking Form Section */
.tracking-form-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

/* Tracking Card */
.tracking-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 3rem;
}

.card-header {
    background: linear-gradient(135deg, #228B70 0%, #1e7a5e 100%);
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
}

.header-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.card-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.card-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.card-body {
    padding: 3rem 2rem;
}

/* Form Styles */
.tracking-form .form-group {
    margin-bottom: 0;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.form-label i {
    color: #228B70;
    font-size: 1rem;
}

.input-group {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.input-group-prepend .input-group-text {
    background: #f8f9fa;
    border: none;
    border-right: 1px solid #e9ecef;
    color: #228B70;
    font-size: 1.1rem;
    padding: 1rem 1.25rem;
}

.form-control {
    border: none;
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    height: auto;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: transparent;
    box-shadow: none;
    outline: 2px solid #228B70;
    outline-offset: -2px;
}

.input-group-append .btn {
    border: none;
    border-left: 1px solid #e9ecef;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.input-group-append .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 139, 112, 0.3);
}

.form-help {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.form-help i {
    color: #228B70;
}

/* Features Section */
.features-section {
    margin-bottom: 3rem;
}

.features-section .row {
    margin: 0 -0.75rem;
}

.features-section .col-md-4 {
    padding: 0 0.75rem;
    margin-bottom: 1.5rem;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #228B70 0%, #1e7a5e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: white;
}

.feature-card h4 {
    color: #228B70;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.feature-card p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Help Section */
.help-section {
    margin-bottom: 2rem;
}

.help-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid #e9ecef;
}

.help-card h3 {
    color: #228B70;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.help-card p {
    color: #495057;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.help-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.help-actions .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-brand {
    color: #228B70;
    border-color: #228B70;
}

.btn-outline-brand:hover {
    background-color: #228B70;
    border-color: #228B70;
    color: white;
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .tracking-hero-section {
        min-height: 30vh;
        padding-top: 60px;
    }
    
    .tracking-hero-section .hero-title {
        font-size: 2rem;
    }
    
    .tracking-hero-section .hero-subtitle {
        font-size: 1rem;
    }
    
    .tracking-form-section {
        padding: 3rem 0;
    }
    
    .card-header {
        padding: 2rem 1.5rem;
    }
    
    .card-body {
        padding: 2rem 1.5rem;
    }
    
    .header-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .input-group-append .btn {
        padding: 0.75rem 1rem;
    }
    
    .help-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .help-actions .btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 576px) {
    .card-header {
        padding: 1.5rem 1rem;
    }
    
    .card-body {
        padding: 1.5rem 1rem;
    }
    
    .form-control {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .input-group-prepend .input-group-text {
        padding: 0.75rem 1rem;
    }
    
    .input-group-append .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .features-section .col-md-4 {
        margin-bottom: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
        margin-bottom: 0;
    }
    
    .help-card {
        padding: 1.5rem 1rem;
    }
}

/* Focus styles for accessibility */
.form-control:focus,
.btn:focus {
    outline: 2px solid #228B70;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .tracking-hero-section {
        background: white !important;
        color: black !important;
    }
    
    .tracking-hero-section .hero-title,
    .tracking-hero-section .hero-subtitle {
        color: black !important;
    }
    
    .tracking-form-section {
        background: white !important;
    }
    
    .tracking-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}
