/* 全局样式 */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}

footer {
    margin-top: auto;
}

/* 登录注册表单 */
.auth-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

/* 文件上传容器 */
.upload-container {
    position: relative;
    margin: 30px auto;
    max-width: 600px;
    height: 500px;
}

/* 文件上传区域 */
.upload-area {
    text-align: center;
    padding: 40px 20px;
    width: 100%;
    height: 100%;
    border: 2px dashed #ccc;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    background-color: #fff;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.upload-area.drag-over {
    border-color: #28a745;
    background-color: #d4edda;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 48px;
    color: #007bff;
    margin-bottom: 15px;
}

.upload-text {
    font-size: 18px;
    color: #6c757d;
}

/* 上传进度区域 */
.upload-progress-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
}

.upload-progress-card {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 90%;
    max-width: 400px;
}

.upload-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.upload-file-name {
    font-weight: 600;
    color: #495057;
    font-size: 16px;
    max-width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-progress-body {
    margin-top: 10px;
}

.upload-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #6c757d;
    margin-top: 10px;
}

.upload-speed,
.upload-eta,
.upload-size {
    flex: 1;
    text-align: center;
}

@media (max-width: 768px) {
    .upload-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .upload-speed,
    .upload-eta,
    .upload-size {
        text-align: left;
    }
}

/* 文件列表 */
.file-list {
    margin-top: 30px;
}

.file-item {
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
    transition: all 0.3s;
}

.file-item:hover {
    background-color: #f8f9fa;
    border-color: #ddd;
}

.file-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.file-info {
    font-size: 13px;
    color: #6c757d;
}

.file-actions {
    margin-top: 10px;
} 

/* 剪贴板样式 */
.clipboard-container {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    height: 500px;
    display: flex;
    flex-direction: column;
}

.clipboard-title {
    color: #495057;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
    font-size: 1.1rem;
}

.clipboard-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 15px;
    max-height: 350px;
    padding: 10px;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.clipboard-loading {
    text-align: center;
    color: #6c757d;
    padding: 20px;
}

.clipboard-message {
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    position: relative;
    word-wrap: break-word;
    animation: slideIn 0.3s ease-out;
}

.clipboard-message:last-child {
    margin-bottom: 0;
}

.clipboard-message.message-text {
    background-color: #e3f2fd;
    border-color: #bbdefb;
}

.clipboard-message.message-image {
    background-color: #f3e5f5;
    border-color: #ce93d8;
}

.clipboard-message-content {
    margin-bottom: 5px;
    line-height: 1.4;
}

.clipboard-message-image {
    max-width: 100%;
    max-height: 200px;
    border-radius: 5px;
    margin-top: 8px;
    cursor: pointer;
}

.clipboard-message-time {
    font-size: 11px;
    color: #6c757d;
    text-align: right;
}

.clipboard-message-actions {
    position: absolute;
    top: 5px;
    right: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.clipboard-message:hover .clipboard-message-actions {
    opacity: 1;
}

.clipboard-message-delete {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 3px;
}

.clipboard-message-delete:hover {
    background-color: rgba(220, 53, 69, 0.1);
}

.clipboard-input-area {
    margin-top: auto;
}

.clipboard-input-area .input-group {
    margin-bottom: 5px;
}

.clipboard-input-area textarea {
    resize: none;
    border-radius: 5px 0 0 5px;
}

.clipboard-input-area .btn {
    border-radius: 0 5px 5px 0;
    padding: 0.375rem 0.75rem;
}

.clipboard-paste-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.clipboard-paste-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滚动条样式 */
.clipboard-messages::-webkit-scrollbar {
    width: 6px;
}

.clipboard-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.clipboard-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.clipboard-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 上传容器在手机端恢复为自适应高度 */
    .upload-container {
        height: auto;
        margin: 20px auto;
    }
    
    /* 上传区域在手机端恢复为窄条样式 */
    .upload-area {
        position: static;
        height: auto;
        width: 100%;
        padding: 30px 20px;
        margin-bottom: 20px;
    }
    
    /* 上传进度条在手机端的调整 */
    .upload-progress-container {
        position: static;
        width: 100%;
        height: auto;
        background-color: transparent;
        display: block;
        margin-top: 20px;
    }
    
    .upload-progress-card {
        width: 100%;
        max-width: none;
        margin: 0;
    }
    
    /* 剪贴板在手机端的样式 */
    .clipboard-container {
        height: 400px;
        margin-top: 0;
    }
    
    .clipboard-messages {
        max-height: 250px;
    }
    
    /* 文件列表在手机端的间距 */
    .file-list {
        margin-top: 30px;
    }
    
    /* 存储空间信息在手机端的样式 */
    .storage-info {
        margin-bottom: 20px;
    }
    
    /* 上传图标和文字在手机端的调整 */
    .upload-icon {
        font-size: 36px;
        margin-bottom: 10px;
    }
    
    .upload-text {
        font-size: 16px;
    }
    
    /* 文件操作按钮在手机端堆叠显示 */
    .file-actions .btn {
        margin-bottom: 5px;
        width: 100%;
    }
    
    .file-actions {
        margin-top: 15px;
    }
} 