﻿.track-card {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    margin: 10px;
}

.card-header {
    background: var(--primary-gradient);
    padding: 30px 20px;
    color: #fff;
    text-align: center;
}

    .card-header h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .card-header p {
        font-size: 1rem;
        margin-bottom: 0;
    }

.card-body {
    padding: 30px 20px;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.form-control {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 15px 20px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    min-height: 50px;
}

    .form-control:focus {
        border-color: #144aa6;
        box-shadow: 0 0 0 0.3rem rgba(20, 74, 166, 0.25);
        transform: translateY(-2px);
    }

.btn-track {
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    padding: 15px 40px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 55px;
    width: 100%;
}

    .btn-track:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(20, 74, 166, 0.4);
    }

.track-options {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.track-option {
    flex: 1;
    min-width: 140px;
    padding: 15px 10px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .track-option.active {
        border-color: #144aa6;
        background: rgba(20, 74, 166, 0.1);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(20, 74, 166, 0.2);
    }

    .track-option i {
        font-size: 1.5rem;
        color: #144aa6;
        margin-bottom: 8px;
        display: block;
    }

    .track-option h6 {
        margin: 0;
        font-weight: 600;
        color: #495057;
        font-size: 0.9rem;
    }

    .track-option.active h6 {
        color: #144aa6;
    }

    .track-option p {
        margin: 5px 0 0 0;
        font-size: 0.8rem;
        color: #6c757d;
    }

.example-number {
    background: rgba(20, 74, 166, 0.1);
    border: 2px dashed #144aa6;
    border-radius: 10px;
    padding: 10px 15px;
    margin-top: 10px;
    text-align: center;
    color: #144aa6;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .example-number:hover {
        background: rgba(20, 74, 166, 0.2);
        transform: translateY(-2px);
    }

.status-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.status-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    position: relative;
}

    .status-icon.pending {
        background: var(--warning-gradient);
    }

    .status-icon.approved {
        background: var(--success-gradient);
    }

    .status-icon.rejected {
        background: var(--danger-gradient);
    }

.status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

    .status-badge.pending {
        background: var(--warning-gradient);
        color: white;
    }

    .status-badge.approved {
        background: var(--success-gradient);
        color: white;
    }

    .status-badge.rejected {
        background: var(--danger-gradient);
        color: white;
    }

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    position: relative;
    flex-wrap: wrap;
    gap: 10px;
}

    .progress-steps::before {
        content: '';
        position: absolute;
        top: 20px;
        left: 0;
        right: 0;
        height: 3px;
        background: #e9ecef;
        z-index: 1;
    }

.step {
    position: relative;
    z-index: 2;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #e9ecef;
    transition: all 0.5s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

    .step.active {
        border-color: #144aa6;
        background: #144aa6;
        color: white;
        transform: scale(1.2);
        box-shadow: 0 5px 15px rgba(20, 74, 166, 0.4);
    }

    .step.completed {
        border-color: #28a745;
        background: #28a745;
        color: white;
        transform: scale(1.1);
        box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
    }

.step-label {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    white-space: nowrap;
}

.step.active .step-label {
    color: #144aa6;
}

.step.completed .step-label {
    color: #28a745;
}

.status-details {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    border: 2px solid #144aa6;
}

.input-group-text {
    background: rgba(20, 74, 166, 0.1);
    border: 2px solid #e9ecef;
    border-right: none;
    color: #144aa6;
    font-weight: 600;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-control {
    border-left: none;
}

    .form-control:focus + .input-group-text {
        border-color: #144aa6;
    }

.quick-track {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border: 2px dashed #144aa6;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

    .quick-track h6 {
        color: #144aa6;
        margin-bottom: 15px;
    }

.quick-track-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-track-btn {
    padding: 8px 16px;
    border: 2px solid #144aa6;
    background: white;
    color: #144aa6;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .quick-track-btn:hover {
        background: #144aa6;
        color: white;
        transform: translateY(-2px);
    }

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .track-card {
        margin: 5px;
        border-radius: 15px;
    }

    .card-header {
        padding: 20px 15px;
    }

        .card-header h2 {
            font-size: 1.5rem;
            margin-bottom: 8px;
        }

        .card-header p {
            font-size: 0.9rem;
        }

    .card-body {
        padding: 20px 15px;
    }

    .track-options {
        flex-direction: column;
        gap: 8px;
    }

    .track-option {
        min-width: auto;
        min-height: 70px;
        padding: 12px 8px;
    }

        .track-option i {
            font-size: 1.3rem;
            margin-bottom: 6px;
        }

        .track-option h6 {
            font-size: 0.85rem;
        }

        .track-option p {
            font-size: 0.75rem;
        }

    .form-label {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .form-control {
        font-size: 1rem;
        padding: 12px 15px;
        min-height: 45px;
    }

    .btn-track {
        font-size: 1rem;
        padding: 12px 20px;
        min-height: 50px;
    }

    .progress-steps {
        margin: 20px 0;
        gap: 5px;
    }

        .progress-steps::before {
            display: none;
        }

    .step {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    .step-label {
        font-size: 0.7rem;
        top: 45px;
    }

    .status-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .status-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .status-details {
        padding: 15px;
        margin: 15px 0;
    }

    .quick-track {
        padding: 15px;
        margin: 15px 0;
    }

    .quick-track-buttons {
        gap: 8px;
    }

    .quick-track-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .input-group-text {
        min-width: 45px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .track-card {
        margin: 0;
        border-radius: 0;
    }

    .card-header {
        padding: 15px 10px;
        border-radius: 0;
    }

        .card-header h2 {
            font-size: 1.3rem;
        }

        .card-header p {
            font-size: 0.85rem;
        }

    .card-body {
        padding: 15px 10px;
    }

    .track-option {
        min-height: 60px;
        padding: 10px 6px;
    }

        .track-option i {
            font-size: 1.2rem;
            margin-bottom: 4px;
        }

        .track-option h6 {
            font-size: 0.8rem;
        }

        .track-option p {
            font-size: 0.7rem;
        }

    .form-control {
        font-size: 0.95rem;
        padding: 10px 12px;
        min-height: 42px;
    }

    .btn-track {
        font-size: 0.95rem;
        padding: 10px 15px;
        min-height: 45px;
    }

    .step {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }

    .step-label {
        font-size: 0.65rem;
        top: 40px;
    }

    .status-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .status-badge {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .status-details {
        padding: 12px;
        margin: 12px 0;
    }

    .quick-track {
        padding: 12px;
        margin: 12px 0;
    }

    .quick-track-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .input-group-text {
        min-width: 40px;
        font-size: 0.85rem;
    }

    .form-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 375px) {
    .card-header h2 {
        font-size: 1.2rem;
    }

    .card-header p {
        font-size: 0.8rem;
    }

    .track-option {
        min-height: 55px;
        padding: 8px 4px;
    }

        .track-option i {
            font-size: 1.1rem;
        }

        .track-option h6 {
            font-size: 0.75rem;
        }

        .track-option p {
            font-size: 0.65rem;
        }

    .form-control {
        font-size: 0.9rem;
        padding: 8px 10px;
        min-height: 40px;
    }

    .btn-track {
        font-size: 0.9rem;
        padding: 8px 12px;
        min-height: 42px;
    }

    .step {
        width: 28px;
        height: 28px;
        font-size: 0.65rem;
    }

    .step-label {
        font-size: 0.6rem;
        top: 35px;
    }

    .status-icon {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .track-option {
        min-height: 60px;
        padding: 15px 10px;
    }

    .btn-track {
        min-height: 50px;
        padding: 15px 20px;
    }

    .form-control {
        min-height: 45px;
        padding: 12px 15px;
    }

    .quick-track-btn {
        min-height: 40px;
        padding: 10px 15px;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .track-options {
        flex-direction: row;
        gap: 10px;
    }

    .track-option {
        min-width: 120px;
        min-height: 60px;
    }

    .card-header {
        padding: 15px 20px;
    }

    .card-body {
        padding: 15px 20px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .track-card {
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }

    .status-icon {
        box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .track-option,
    .btn-track,
    .form-control,
    .step,
    .status-icon {
        transition: none;
    }

        .track-option:hover,
        .btn-track:hover {
            transform: none;
        }
}
