/* 申請狀態頁面專用樣式 */

body {
    animation: pageLoad 0.8s ease-out;
}

.status-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafe 100%);
    border-radius: 24px;
    box-shadow: 
        0 24px 48px rgba(0, 104, 183, 0.12),
        0 8px 16px rgba(0, 0, 0, 0.05);
    margin: 40px auto;
    max-width: 900px;
    overflow: hidden;
    border: 1px solid rgba(0, 104, 183, 0.08);
    position: relative;
    animation: slideInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.status-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 104, 183, 0.03), transparent);
    transition: left 2s ease;
    animation: shimmer 3s ease-in-out 1s;
}

.status-header {
    background: linear-gradient(135deg, #0068b7 0%, #004d8a 50%, #003d73 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.status-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: headerGlow 4s ease-in-out infinite;
}

.status-header h2 {
    margin: 0 0 15px 0;
    font-size: 2.4em;
    font-weight: 400;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeInDown 0.8s ease-out 0.3s both;
}

.status-header p {
    margin: 0;
    opacity: 0;
    font-size: 1.1em;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.status-content {
    padding: 40px;
    animation: fadeIn 0.8s ease-out 0.7s both;
}

.search-form {
    background: #fff;
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 35px;
    box-shadow: 
        0 12px 24px rgba(0, 104, 183, 0.08),
        0 4px 8px rgba(0, 0, 0, 0.03);
    border: 2px solid rgba(0, 104, 183, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.search-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 104, 183, 0.02), rgba(0, 161, 255, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-form:hover::before {
    opacity: 1;
}

.search-form:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 20px 40px rgba(0, 104, 183, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #333;
    font-size: 1.05em;
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e8ecf0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-sizing: border-box;
    background: #fff;
    position: relative;
}

.form-group input::placeholder {
    color: #999;
    transition: color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #0068b7;
    box-shadow: 
        0 0 0 4px rgba(0, 104, 183, 0.1),
        0 4px 12px rgba(0, 104, 183, 0.15);
    transform: translateY(-2px);
}

.form-group input:focus::placeholder {
    color: #bbb;
    transform: translateY(-2px);
}

.search-btn {
    background: linear-gradient(135deg, #0068b7, #004d8a);
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 104, 183, 0.2);
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.search-btn:hover::before {
    width: 300%;
    height: 300%;
}

.search-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 104, 183, 0.3);
}

.search-btn:active {
    transform: translateY(-1px);
}

.search-btn:disabled {
    background: linear-gradient(135deg, #ccc, #bbb);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.status-result {
    display: none;
    background: #fff;
    border: 2px solid rgba(0, 104, 183, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-top: 25px;
    box-shadow: 0 12px 24px rgba(0, 104, 183, 0.08);
    animation: slideInUp 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.status-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 104, 183, 0.03), transparent);
    transition: left 0.8s ease;
}

.status-result.show::before {
    left: 100%;
}

.status-card {
    text-align: center;
    position: relative;
    z-index: 2;
}

.status-icon {
    font-size: 80px;
    margin-bottom: 20px;
    display: block;
    animation: statusIconPulse 2s ease-in-out infinite;
}

.status-pending { 
    color: #FF9800;
    text-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}
.status-approved { 
    color: #4CAF50;
    text-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}
.status-rejected { 
    color: #f44336;
    text-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.status-title {
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 15px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.status-description {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.7;
    font-size: 1.05em;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.progress-bar-container {
    margin: 30px 0;
    animation: fadeInUp 0.6s ease-out 0.7s both;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8ecf0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.step-circle.completed {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    animation: stepComplete 0.6s ease-out;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.step-circle.current {
    background: linear-gradient(135deg, #FF9800, #f57c00);
    color: white;
    animation: stepCurrent 1.5s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.step-label {
    font-size: 13px;
    text-align: center;
    color: #666;
    font-weight: 500;
}

.progress-line {
    position: absolute;
    top: 20px;
    left: 50%;
    right: -50%;
    height: 3px;
    background: #e8ecf0;
    z-index: 1;
    border-radius: 2px;
    transition: all 0.6s ease;
}

.progress-line.completed {
    background: linear-gradient(90deg, #4CAF50, #45a049);
    box-shadow: 0 1px 3px rgba(76, 175, 80, 0.3);
}

.member-info {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 16px;
    padding: 25px;
    margin-top: 25px;
    text-align: left;
    border: 1px solid rgba(0, 104, 183, 0.08);
    animation: fadeInUp 0.6s ease-out 0.9s both;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e8ecf0;
    transition: all 0.3s ease;
}

.info-row:hover {
    background: rgba(0, 104, 183, 0.02);
    padding: 8px 15px;
    margin: 0 -15px 15px -15px;
    border-radius: 8px;
}

.info-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-label {
    font-weight: 600;
    color: #333;
}

.info-value {
    color: #666;
    font-weight: 500;
}

.contact-info {
    background: linear-gradient(135deg, #e3f2fd, #f8fafe);
    border-left: 5px solid #0068b7;
    padding: 25px;
    margin-top: 25px;
    border-radius: 0 16px 16px 0;
    animation: fadeInUp 0.6s ease-out 1.1s both;
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 104, 183, 0.02), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-info:hover::before {
    opacity: 1;
}

.contact-title {
    font-weight: 700;
    color: #0068b7;
    margin-bottom: 12px;
    font-size: 1.1em;
}

.error-message {
    background: linear-gradient(135deg, #ffebee, #fce4ec);
    border: 2px solid #ffcdd2;
    color: #c62828;
    padding: 18px 24px;
    border-radius: 12px;
    margin-top: 20px;
    display: none;
    animation: shakeError 0.5s ease-out;
    font-weight: 500;
}

.loading {
    text-align: center;
    padding: 30px;
    color: #666;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0068b7;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* 動畫效果 */
@keyframes pageLoad {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes headerGlow {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: rotate(180deg) scale(1.1);
        opacity: 0.1;
    }
}

@keyframes statusIconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes stepComplete {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes stepCurrent {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5);
    }
}

@keyframes shakeError {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

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

/* 響應式設計 */
@media (max-width: 768px) {
    .status-section {
        margin: 20px 10px;
        border-radius: 20px;
    }
    
    .status-header {
        padding: 30px 20px;
    }

    .status-header h2 {
        font-size: 2em;
    }

    .status-content {
        padding: 25px 20px;
    }

    .search-form {
        padding: 25px 20px;
        border-radius: 16px;
    }

    .progress-steps {
        flex-direction: column;
        gap: 20px;
    }

    .progress-step {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }

    .step-circle {
        margin-right: 15px;
        margin-bottom: 0;
    }

    .progress-line {
        display: none;
    }

    .status-icon {
        font-size: 64px;
    }

    .status-title {
        font-size: 1.6em;
    }
}

@media (max-width: 480px) {
    .status-section {
        margin: 15px 5px;
    }

    .status-header {
        padding: 25px 15px;
    }

    .status-content {
        padding: 20px 15px;
    }

    .search-form {
        padding: 20px 15px;
    }
}
