/**
 * Attach File Manager - Frontend Styles
 * 프론트엔드에서 ZIP 파일 링크 스타일링
 */

/* Attach File Manager - 프론트엔드 스타일 */

/* 첨부파일 컨테이너 스타일 */
.attachFile {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 6px;
    background-color: #f8f9fa;
    margin: 10px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    position: relative;
}

/* 다양한 파일 형식별 스타일 */
.attachFile-zip {
    border-left: 3px solid #556080;
}

.attachFile-pdf {
    border-left: 3px solid #cc4b4c;
}

.attachFile-hwp {
    border-left: 3px solid #e34c04;
}

.attachFile-doc {
    border-left: 3px solid #007bff;
}

.attachFile-docx {
    border-left: 3px solid #007bff;
}

/* 첨부파일 아이콘 */
.attachFile-icon {
    flex-shrink: 0;
    margin-right: 12px;
}

.attachFile-icon img {
    width: 40px;
    height: 40px;
    display: block;
}

/* 첨부파일 정보 */
.attachFile-info {
    flex: 1;
    min-width: 0;
}

.attachFile-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    word-break: break-word;
}

.attachFile-size {
    font-size: 13px;
    color: #666;
}

/* 다운로드 버튼 */
.attachFile-download {
    flex-shrink: 0;
    margin-left: 12px;
}

.attachFile-download > a:link {
    text-decoration: none;
    color: #fff;
}

.attachFile-btn {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(to bottom, #0073aa, #005a87);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 파일 형식별 다운로드 버튼 */
.attachFile-zip .attachFile-btn {
    background: linear-gradient(to bottom, #7480a5, #556080);
}

.attachFile-pdf .attachFile-btn {
    background: linear-gradient(to bottom, #dc3545, #c82333);
}

.attachFile-hwp .attachFile-btn {
    background: linear-gradient(to bottom, #f36623, #e34c04);
}

.attachFile-doc .attachFile-btn,
.attachFile-docx .attachFile-btn {
    background: linear-gradient(to bottom, #0096e6, #0056b3);
}

.attachFile-btn:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.attachFile-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 반응형 디자인 */
@media (max-width: 600px) {
    .attachFile {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
    
    .attachFile-icon {
        margin-right: 0;
        margin-bottom: 12px;
    }
    
    .attachFile-download {
        margin-left: 0;
        margin-top: 12px;
    }
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
    .attachFile {
        background-color: #1e1e1e;
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .attachFile-name {
        color: #e0e0e0;
    }
    
    .attachFile-size {
        color: #a0a0a0;
    }
    
    .attachFile-btn {
        box-shadow: 0 1px 3px rgba(255, 255, 255, 0.1);
    }
    
    .attachFile-btn:hover {
        box-shadow: 0 2px 6px rgba(255, 255, 255, 0.2);
    }
} 