.sha384-container {
    max-width: 800px;
    margin: 1rem auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
    word-wrap: break-word;
    word-break: break-all;
}

.input-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.text-input, .file-input {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 3;
}

.input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.clear-btn {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.clear-btn:hover {
    background: #f0f0f0;
    color: #dc3545;
}

.input-hint {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-hint i {
    color: #007bff;
}

.text-input h3, .file-input h3 {
    margin-bottom: 1rem;
    color: #333;
}

textarea {
    width: 100%;
    height: 150px;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    margin-bottom: 1rem;
    position: relative;
    z-index: 4;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 4;
}

.upload-area:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.upload-area.drag-over {
    border-color: #007bff;
    background: #e7f3ff;
    transform: scale(1.02);
}

.file-info {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.file-info-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.file-info i {
    color: #007bff;
    font-size: 1.2rem;
}

.file-name {
    font-weight: 500;
    color: #333;
    flex: 1;
    text-align: left;
    word-break: break-all;
}

.file-size {
    color: #666;
    font-size: 0.9rem;
    white-space: nowrap;
}

.upload-area i {
    font-size: 2rem;
    color: #666;
    margin-bottom: 1rem;
}

.upload-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
}

.output-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 3;
}

.hash-output {
    display: flex;
    gap: 0.5rem;
    position: relative;
    z-index: 4;
}

.hash-output input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    background: #f8f9fa;
    font-size: 0.9rem;
    word-break: break-all;
}

.copy-btn {
    padding: 0.8rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 48px;
}

.copy-btn:hover {
    background: #0056b3;
    transform: scale(1.05);
}

.copy-btn:active {
    transform: scale(0.95);
}

.loading-indicator {
    text-align: center;
    padding: 1rem;
    margin: 1rem 0;
    background: #f8f9fa;
    border-radius: 8px;
    color: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.loading-indicator i {
    font-size: 1.2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.verify-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.verify-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.verify-input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
}

.verify-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.verify-btn {
    padding: 0.8rem 1.5rem;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.verify-btn:hover {
    background: #218838;
    transform: scale(1.05);
}

.verify-result {
    padding: 0.75rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.verify-result.match {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.verify-result.no-match {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.verify-result i {
    font-size: 1.2rem;
}

.message {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    animation: slideIn 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    max-width: 350px;
    word-wrap: break-word;
}

.message.success {
    background: #28a745;
}

.message.error {
    background: #dc3545;
}

.instructions-container {
    margin-top: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.features-section {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.usage-section, .tips-section {
    margin-top: 2rem;
}

.usage-section ul, .tips-section ul {
    list-style-type: none;
    padding-left: 0;
}

.usage-section li, .tips-section li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.usage-section li:before, .tips-section li:before {
    content: "•";
    color: #007bff;
    position: absolute;
    left: 0;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .input-section {
        grid-template-columns: 1fr;
    }
    
    .hash-output input {
        font-size: 0.8rem;
    }
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
    .text-input, .file-input, .output-section, .instructions-container {
        background: #2d2d2d;
    }

    .text-input h3, .file-input h3, .feature h3 {
        color: #fff;
    }

    textarea, .hash-output input, .verify-input {
        background: #1e1e1e;
        border-color: #444;
        color: #fff;
    }

    .upload-area {
        border-color: #444;
    }

    .upload-area:hover {
        background: #1e1e1e;
        border-color: #007bff;
    }
    
    .upload-area.drag-over {
        background: #2a2a2a;
        border-color: #007bff;
    }
    
    .file-info {
        background: #1e1e1e;
        border-color: #444;
    }
    
    .file-name {
        color: #fff;
    }
    
    .file-size {
        color: #aaa;
    }
    
    .input-hint {
        color: #aaa;
    }
    
    .loading-indicator {
        background: #1e1e1e;
        color: #007bff;
    }
    
    .verify-section {
        border-top-color: #444;
    }

    .feature p, .usage-section li, .tips-section li {
        color: #ddd;
    }
}

.sha384-intro {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sha384-intro h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4em;
}

.sha384-intro p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-color);
}

.sha384-intro ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.sha384-intro li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: var(--text-color);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .sha384-intro {
        background-color: var(--dark-card-bg);
    }
    
    .sha384-intro p,
    .sha384-intro li {
        color: var(--dark-text-color);
    }
}

/* 긴 텍스트 처리 */
.example p {
    word-wrap: break-word;
    word-break: break-all;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    max-width: 100%;
    overflow-x: hidden;
}

/* 해시 값 특별 처리 */
.example p:has(.text-emphasis) {
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sha384-intro {
        padding: 15px;
    }
    
    .sha384-intro h3 {
        font-size: 1.2em;
    }

    .example p:has(.text-emphasis) {
        font-size: 0.8rem;
        padding: 0.4rem;
    }
}

