
:root {
    --primary: #ff6b00;
    --primary-dark: #d45a00;
    --secondary: #2c3e50;
    --secondary-light: #34495e;
    --background: #1a1a2e;
    --background-light: #16213e;
    --text: #ecf0f1;
    --text-secondary: #bdc3c7;
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #f39c12;
    --border: rgba(255, 107, 0, 0.2);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: linear-gradient(135deg, var(--background) 0%, var(--background-light) 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.app-area {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .app-area {
        grid-template-columns: 1fr;
    }
}

.panel {
    background: rgba(30, 30, 46, 0.9);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.panel-title {
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-title i {
    font-size: 1.3rem;
}

.btn {
    background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: linear-gradient(to bottom, #ff7b1c, #e05a00);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 107, 0, 0.3);
}

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

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-secondary {
    background: linear-gradient(to bottom, var(--secondary-light), var(--secondary));
}

.btn-secondary:hover {
    background: linear-gradient(to bottom, #3d5068, #2c3e50);
}

.btn-danger {
    background: linear-gradient(to bottom, var(--danger), #c0392b);
}

.btn-danger:hover {
    background: linear-gradient(to bottom, #ff6b5c, #e74c3c);
}

.btn-success {
    background: linear-gradient(to bottom, var(--success), #229954);
}

.btn-success:hover {
    background: linear-gradient(to bottom, #2ecc71, #27ae60);
}

.file-input-container {
    margin: 20px 0;
}

.file-input-label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
}

.file-input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: border 0.3s;
}

.file-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.2);
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin: 15px 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.checkbox-container input {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-container label {
    color: var(--text);
    cursor: pointer;
    font-size: 1rem;
}

.file-list-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.file-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.file-count {
    color: var(--text-secondary);
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 15px;
    border-radius: 20px;
}

.file-list {
    flex: 1;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    max-height: 500px;
    min-height: 300px;
}

.file-item {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.file-item:hover {
    background: rgba(255, 107, 0, 0.1);
}

.file-item:last-child {
    border-bottom: none;
}

.file-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.file-name {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-details {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    gap: 15px;
}

.file-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.action-btn:hover {
    background: rgba(255, 107, 0, 0.3);
    color: var(--primary);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 1.2rem;
}

.status-bar {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    color: var(--text);
    font-size: 1rem;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-container {
    margin: 20px 0;
    display: none;
}

.progress-bar {
    height: 24px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--warning));
    width: 0%;
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 50px 50px;
    animation: moveStripes 2s linear infinite;
}

@keyframes moveStripes {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

.progress-text {
    text-align: center;
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
}

.drop-zone {
    border: 3px dashed rgba(255, 107, 0, 0.3);
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    margin: 20px 0;
    transition: all 0.3s;
    background: rgba(255, 107, 0, 0.05);
    cursor: pointer;
}

.drop-zone.active {
    border-color: var(--primary);
    background: rgba(255, 107, 0, 0.1);
    transform: scale(1.02);
}

.drop-zone p {
    color: var(--text);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.drop-zone .highlight {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.file-preview {
    margin-top: 20px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: none;
}

.preview-title {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-content {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.95rem;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.5;
    border: 1px solid var(--border);
}

.preview-content::-webkit-scrollbar {
    width: 10px;
}

.preview-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.preview-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

.notification {
    position: fixed;
    top: 30px;
    right: 30px;
    padding: 20px 25px;
    border-radius: 10px;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transform: translateX(150%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    min-width: 300px;
    max-width: 400px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(135deg, var(--success), #229954);
    border-left: 5px solid #2ecc71;
}

.notification.error {
    background: linear-gradient(135deg, var(--danger), #c0392b);
    border-left: 5px solid #ff6b6b;
}

.notification.info {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-left: 5px solid #5dade2;
}

.notification.warning {
    background: linear-gradient(135deg, var(--warning), #e67e22);
    border-left: 5px solid #f7dc6f;
}

.notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.notification-message {
    font-size: 0.95rem;
    opacity: 0.9;
}

.close-notification {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.5rem;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-notification:hover {
    opacity: 1;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal {
    background: var(--background-light);
    border-radius: 15px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
}

.modal.show {
    transform: translateY(0);
    opacity: 1;
}

.modal-title {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-content {
    color: var(--text);
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 1.1rem;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
}

.modal-btn {
    padding: 12px 25px;
    min-width: 120px;
}

.encryption-options {
    margin: 20px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid var(--border);
    display: none;
}

.section-divider {
    height: 1px;
    background: var(--border);
    margin: 25px 0;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.footer-link {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--warning);
    text-decoration: underline;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.file-list::-webkit-scrollbar {
    width: 10px;
}

.file-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.file-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

.file-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.tab-buttons {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    padding: 12px 25px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

.tab-btn:hover:not(.active) {
    color: var(--text);
    background: rgba(255, 107, 0, 0.1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}
