﻿/* General Styling */
.margin-up {
    margin-top: 5.1rem !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    padding: 20px;
    color: #333;
    background: linear-gradient(135deg, #f0f8ff, #e6f7e6);
}

/* Status Tracker Container */
.td-status-tracker {
    background: linear-gradient(135deg, #edf0f8, #ffffff);
    border-radius: 15px;
    padding: 30px;
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid #e6e9f0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Header Styling */
.td-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.td-logo-badge {
    background: linear-gradient(135deg, #4a90e2, #6c5ce7);
    color: white;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
}

.td-ticket-number {
    margin: 0;
    color: #2c3e50;
}

/* Ticket Info Styling */
.td-ticket-info {
    background: #f9fbfe;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 5px solid #4a90e2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

    .td-ticket-info p {
        margin: 5px 0;
        font-size: 14px;
    }

    .td-ticket-info strong {
        color: #2c3e50;
    }

.text-info {
    color: #4a90e2;
}

/* Status Steps */
.td-status-steps {
    position: relative;
    padding-left: 0;
}

/* Individual Step */
.td-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    position: relative;
    padding-left: 60px;
    min-height: 50px;
}

    /* Connecting lines */
    .td-step:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 25px;
        top: 50px;
        height: calc(100% - 30px);
        width: 2px;
        background: #e0e4e8;
        z-index: 1;
    }

.td-step-completed:not(:last-child)::after,
.td-step-active:not(:last-child)::after {
    background: #4caf50;
}

.td-step-active:not(:last-child)::after {
    background: #2196f3;
}

.td-step-rejected:not(:last-child)::after {
    background: #f44336;
}

/* Step Icons */
.td-step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f0f2f7, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    font-size: 20px;
    color: #999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #e0e0e0;
    z-index: 2;
}

/* Step States */
.td-step-completed .td-step-icon {
    background: #e8f5e9;
    color: #4caf50;
    border-color: #4caf50;
}

.td-step-active .td-step-icon {
    background: #e3f2fd;
    color: #2196f3;
    border-color: #2196f3;
    animation: pulse 2s infinite;
}

.td-step-rejected .td-step-icon {
    background: #ffebee;
    color: #f44336;
    border-color: #f44336;
}

/* Step Info */
.td-step-info {
    flex: 1;
}

.td-step-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    font-size: 16px;
}

.td-step-time {
    font-size: 13px;
    color: #777;
    display: block;
}

/* Rejection Reason */
.td-reject-reasons {
    font-size: 13px;
    color: #f44336;
    margin-top: 8px;
    padding: 8px;
    background: #ffebee;
    border-radius: 4px;
    border-left: 3px solid #f44336;
}

/* Active Pulse Effect */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.4);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(33, 150, 243, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0);
    }
}

/* Footer */
.td-status-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #e6e9f0;
    flex-wrap: wrap;
    gap: 10px;
}

/* Buttons */
.td-refresh-btn, .td-print-btn {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
}

.td-print-btn {
    background: linear-gradient(135deg, #2196f3, #4a90e2);
}

    .td-refresh-btn:hover, .td-print-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

/* Last Updated Text */
.td-last-updated {
    font-size: 13px;
    color: #999;
    margin-left: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .td-status-tracker {
        padding: 20px;
    }

    .td-step {
        padding-left: 50px;
    }

    .td-step-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}




/* Container and Card Styling */
.ticket-panel-lg {
    width: 100%;
    max-width: 550px;
    border-radius: 16px;
    background-color: #f9f9f9;
}

    /* Title Icon and Heading */
    .ticket-panel-lg h2 {
        font-size: 28px;
        color: #444;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px; /* Space between icon and text */
        flex-wrap: nowrap; /* Prevent breaking */
    }

/* Responsive Adjustments */
@media (max-width: 576px) {
    .ticket-panel-lg h2 {
        font-size: 22px; /* Slightly smaller for mobile */
    }

        .ticket-panel-lg h2 i {
            font-size: 20px; /* Slightly smaller icon */
        }
}

/* Ticket Icon */
.ticket-icon {
    font-size: 32px;
    color: #007bff;
}

/* Input Box */
.ticket-input-lg {
    height: 45px;
    font-size: 18px;
    border-radius: 10px;
    border: 1px solid #ccc;
    padding-left: 12px;
}

/* Track Button */
.track-btn-lg {
    height: 45px;
    font-size: 18px;
    border-radius: 10px;
    background-color: #007bff;
    transition: background-color 0.3s ease;
}

    .track-btn-lg:hover {
        background-color: #0056b3;
    }

/* Result Panel */
.result-panel-lg {
    border-radius: 10px;
    font-size: 16px;
    background-color: #e9f7fe;
    border: 1px solid #b8daff;
}
