* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden; /* 수평 스크롤 및 우측 여백 방지 */
}

body { 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed; /* 배경 고정 */
    min-height: 100vh;
    /* iOS 노치 영역까지 배경색 확장 */
    padding: 10px;
    padding-top: env(safe-area-inset-top, 10px);
    padding-bottom: env(safe-area-inset-bottom, 10px);
    padding-left: env(safe-area-inset-left, 10px);
    padding-right: env(safe-area-inset-right, 10px);
    color: #333;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    margin: 0;
}

.container { 
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    max-width: 400px;
    width: 100%; 
    margin: 20px 0; 
    padding: 30px 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

/* Language Toggle Button */
.language-toggle {
    position: absolute;
    right: 0; /* 오른쪽에 배치 */
    top: 50%;
    transform: translateY(-50%); /* 버튼을 수직 가운데 정렬 */
}

.lang-toggle-btn {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lang-toggle-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lang-toggle-btn:active {
    transform: translateY(0);
}

.header {
    display: flex;
    align-items: center; /* 제목과 버튼을 같은 높이로 정렬 */
    justify-content: center; /* 제목을 가운데 정렬 */
    position: relative; /* 버튼을 오른쪽에 배치하기 위해 상대 위치 설정 */
    margin-bottom: 15px; /* 헤더 아래 여백 줄임 */
    flex-wrap: nowrap; /* 줄바꿈 방지 */
}

h1 {
    font-size: 1.6rem;
    margin-bottom: 0;
    color: #7b5e3b;
    font-weight: 700;
    text-align: center; /* 중앙 정렬 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 80px); /* 버튼 공간 확보 */
}

h1 .emoji {
    display: inline-block;
    margin-left: 0.2em;
    font-size: 1.3em;
    color: #ffb300; 
    filter: none;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-8px);}
    60% {transform: translateY(-4px);}
}

.subtitle {
    display: block; /* 설명을 제목 아래로 이동 */
    margin-top: 10px; /* 제목과 설명 사이 간격 추가 */
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.upload-section {
    margin-bottom: 30px;
}

.file-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-label {
    display: block;
    padding: 40px 20px;
    border: 3px dashed #ccc;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.7);
}

.file-input-label:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.file-input-label.dragover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.02);
}

.file-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.file-selected {
    color: #28a745;
    font-weight: 600;
    margin: 10px 0;
    word-break: break-all;
}

.info-box {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.info-box h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1rem;
}

.info-box ul {
    list-style: none;
    padding: 0;
}

.info-box li {
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #555;
    padding-left: 5px;
}

.edit-video-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
    /* margin-bottom: 20px; /* This is on the container now */
}

.edit-video-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.4);
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    /* 플렉스 레이아웃으로 변경하여 중앙 정렬 */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-content {
    background: #fff;
    /* margin: 5% auto; Removed for flex centering */
    padding: 32px 20px 20px 20px;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(102,126,234,0.15);
    border: none;
    width: 95%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalPop 0.3s cubic-bezier(.4,2,.6,1) 1;
}

@keyframes modalPop {
    0% { transform: scale(0.95) translateY(30px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header h2 {
    margin-bottom: 18px;
    color: #4a4a4a;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -1px;
}

/* Canvas for video preview in modal */
#videoPreviewCanvas {
    max-width: 400px; /* 최대 너비 제한 */
    max-height: 300px; /* 최대 높이 제한 */
    width: auto; /* 자동 너비 조정 */
    height: auto; /* 비율 유지 */
    border-radius: 10px;
    margin: 0 auto 18px auto; /* 중앙 정렬 */
    box-shadow: 0 2px 12px rgba(102,126,234,0.08);
    background-color: #f0f0f0; /* Placeholder background */
    display: block; /* Ensure it takes block space */
    cursor: crosshair;
    transition: cursor 0.2s;
}

#videoPreviewCanvas.crop-mode {
    cursor: crosshair;
    border: 2px dashed #667eea;
}

.crop-controls {
    margin-bottom: 15px;
    text-align: center;
}

.fixed-crop-toggle {
    background: linear-gradient(45deg, #17a2b8, #138496);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
}

.fixed-crop-toggle:hover {
    background: linear-gradient(45deg, #138496, #117a8b);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.4);
}

.fixed-crop-toggle.active {
    background: linear-gradient(45deg, #dc3545, #c82333);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.fixed-crop-toggle.active:hover {
    background: linear-gradient(45deg, #c82333, #bd2130);
}

.crop-area-display {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 6px;
    font-size: 0.85rem;
    color: #667eea;
    font-weight: 600;
}


.modal-footer {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.modal-footer button {
    min-width: 90px;
    padding: 10px 0;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(102,126,234,0.08);
}

.modal-footer .apply-btn {
    background: linear-gradient(45deg, #28a745, #218838);
    color: #fff;
}

.modal-footer .cancel-btn {
    background: linear-gradient(45deg, #6c757d, #5a6268);
    color: #fff;
}

.trim-controls label {
    display: block;
    margin: 10px 0 5px 0;
    font-weight: 600;
    color: #555;
    font-size: 0.97rem;
}

.trim-controls input[type="range"] {
    width: 100%;
    margin-bottom: 10px;
    accent-color: #667eea;
    height: 4px;
}

.trim-controls .time-display {
    background: rgba(102, 126, 234, 0.08);
    padding: 10px 0;
    border-radius: 8px;
    margin: 10px 0 8px 0;
    font-weight: 600;
    color: #667eea;
    font-size: 0.98rem;
}

button#submitBtn { /* More specific selector for main button */
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.button-text {
    position: relative;
    z-index: 3;
    display: block;
    transition: all 0.3s ease;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

.button-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(45deg, rgba(90, 103, 216, 0.8), rgba(102, 126, 234, 0.6));
    transition: width 0.3s ease;
    z-index: 1;
    border-radius: 12px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.4);
}

button#submitBtn.processing {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    cursor: not-allowed;
}

button#submitBtn.processing .button-text {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    font-weight: 700;
}

button#submitBtn.processing .button-progress {
    background: linear-gradient(45deg, rgba(90, 103, 216, 0.9), rgba(102, 126, 234, 0.7));
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.5);
}

button#submitBtn:hover, button#submitBtn:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

button#submitBtn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.progress-text {
    display: none;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    font-weight: 500;
}

.result {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Styling for the result preview canvas container */
.result-preview-container {
    background: repeating-conic-gradient(#eee 0% 25%, #ccc 0% 50%) 0% 0%/24px 24px; 
    border-radius: 15px; 
    width: 180px; 
    height: 180px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); 
    margin: 0 auto 18px auto; /* Centering and margin */
    overflow: hidden;
    position: relative;
}

.loading-frames {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    z-index: 10;
}

.loading-frames p {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 10px 0;
    text-align: center;
}

.loading-frames::before {
    content: '⏳';
    font-size: 2rem;
    animation: spin 1s linear infinite;
    display: block;
    margin-bottom: 10px;
}

#resultPreviewCanvas {
    max-width: 180px; /* Max display width */
    max-height: 180px; /* Max display height */
    width: auto; /* Actual display width based on aspect ratio */
    height: auto; /* Actual display height based on aspect ratio */
    margin: 0 auto 0 auto;

    border-radius: 10px;
    background: transparent !important; /* Ensure it's transparent */
    display: block; /* Ensure it's treated as a block for layout */
}


.download-link {
    display: inline-block;
    padding: 12px 24px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    margin: 15px 0;
    font-weight: 500;
    transition: all 0.3s ease;
}

.download-link:hover {
    background: #218838;
    transform: translateY(-2px);
}

.success-icon {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 15px;
}

.error {
    color: #dc3545;
    padding: 15px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 10px;
    margin-top: 15px;
}

/* Result Container Styles */
.result-container {
    margin-top: 20px;
    text-align: center;
}

.success-section {
    background: rgba(40, 167, 69, 0.08);
    border: 1px solid rgba(40, 167, 69, 0.2);
    border-radius: 15px;
    padding: 25px 20px;
    margin-bottom: 20px;
}

.success-title {
    font-size: 1.4rem;
    color: #28a745;
    margin-bottom: 20px;
    font-weight: 600;
}

.result-canvas {
    max-width: 160px;
    max-height: 160px;
    width: auto;
    height: auto;
    border-radius: 12px;
    background: transparent !important;
    display: block;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    border: none;
    cursor: pointer;
    margin-bottom: 10px;
}

.download-btn:hover {
    background: linear-gradient(45deg, #218838, #1eb8a6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: white;
}

.telegram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(45deg, #0088cc, #229ed9);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
    border: none;
    cursor: pointer;
    margin-bottom: 10px;
}

.telegram-btn:hover {
    background: linear-gradient(45deg, #006ba1, #1a8bb5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
    color: white;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.download-icon {
    font-size: 1.2rem;
}

.instructions-section {
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    padding: 20px;
    text-align: left;
}

.instructions-title {
    font-size: 1.1rem;
    color: #667eea;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
}

.instruction-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.instruction-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
}

.step-icon {
    font-size: 0.9rem;
    color: #28a745;
    margin-top: 2px;
    flex-shrink: 0;
}

.step-text {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.instructions {
    background: rgba(102, 126, 234, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    font-size: 0.85rem;
    color: #667eea;
}

.buy-coffee-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    flex-wrap: wrap;
}

.buy-coffee-btn { /* This class was not used in HTML, but keeping for reference */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #ff813f;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 129, 63, 0.3);
    border: none;
    cursor: pointer;
}

.buy-coffee-btn:hover {
    background: #ff6b1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 129, 63, 0.4);
    color: white;
}

.coffee-icon {
    font-size: 1.1rem;
}

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

/* 비디오 팝업 모달 스타일 */
.video-popup-modal {
    display: none; /* 기본적으로 숨김 */
    position: fixed; /* 화면에 고정 */
    z-index: 1000; /* 다른 요소들 위에 표시 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* 스크롤 가능 */
    background-color: rgba(0,0,0,0.7); /* 반투명 검은색 배경 */
    justify-content: center;
    align-items: center;
}

.video-popup-modal-content {
    background-color: #fefefe;
    margin: auto; /* 수직/수평 중앙 정렬 */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px; /* 최대 너비 */
    border-radius: 10px;
    position: relative;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
}

.video-popup-close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
}

.video-popup-close-button:hover,
.video-popup-close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#popupVideoPlayer {
    width: 100%;
    max-height: 80vh; /* 화면 높이의 80%를 넘지 않도록 */
    display: block;
    margin-top: 20px; /* 닫기 버튼과의 간격 */
}

/* 다운로드 버튼 강조 애니메이션 */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    }
}

/* Safari/iOS 특별 처리 */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    #resultPreviewCanvas {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* iOS에서 Canvas 터치 이벤트 개선 */
@media (max-width: 768px) {
    h1 {
        font-size: 1.4rem;
    }
    
    #resultPreviewCanvas {
        -webkit-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    .result-preview-container {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0; /* 모바일에서는 패딩 제거 */
        align-items: flex-start; 
    }
    
    .container {
        padding: 20px 15px;
        border-radius: 15px;
        margin: 10px; /* 컨테이너 마진 축소 */
        width: calc(100% - 20px); /* 너비 계산 */
        max-width: 100%; /* 최대 너비 제한 제거 */
    }
    
    h1 {
        font-size: 1.3rem;
    }
    
    .lang-toggle-btn {
        font-size: 0.7rem;
        padding: 6px 10px;
    }
    
    button#submitBtn {
        padding: 14px;
        font-size: 1rem;
    }

    /* 모달 관련 스타일 조정 */
    .modal-content {
        padding: 25px 15px 15px 15px;
        max-width: 95vw;
    }
    .modal-header h2 {
        font-size: 1.15rem;
    }
    #videoPreviewCanvas {
        max-height: 500px;
    }
}

.result-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 180px; /* 결과 이미지 최대 폭과 동일 */
    margin: 0 auto;
    position: relative;
}

.thumbnail-click-msg {
    width: 100%;
    margin-bottom: 15px;
    text-align: center;
    margin-top: 12px;
    color: #555;
    font-size: 15px;
    position: relative;
    line-height: 1.5;
    font-weight: normal;
}

/* iOS에서의 결과 화면 개선 */
@media screen and (-webkit-min-device-pixel-ratio: 0) and (max-width: 480px) {
    .success-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .result-preview-container {
        width: 180px;
        height: 180px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 18px auto;
    }
}

/* 텔레그램 로그인 페이지 스타일 */
.telegram-login-section {
    margin: 20px 0;
    padding: 20px;
    background: rgba(0, 136, 204, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(0, 136, 204, 0.2);
}

.telegram-login-section h2 {
    color: #0088cc;
    margin-bottom: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-group {
    margin: 15px 0;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus {
    border-color: #0088cc;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 136, 204, 0.2);
}

.form-group input[type="radio"] {
    margin-right: 8px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    margin: 15px 0;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin: 15px 0;
}

.back-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.back-btn:hover {
    background: #5a6268;
    color: white;
}

.back-link {
    text-align: center;
    margin-top: 30px;
}
