* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000000;
    min-height: 100vh;
    color: #e5e7eb;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: #000000;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.header {
    color: #f3f4f6;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo i {
    font-size: 2rem;
    color: #8b5cf6;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f3f4f6;
    border-bottom: 1px solid #333333;
    padding-bottom: 10px;
}

.header-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.breadcrumb {
    border-radius: 20px 20px 0px 0px;
    padding: 1rem 2rem;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child):after {
    content: ">";
    margin: 0 0.5rem;
    color: #9ca3af;
}

.breadcrumb a {
    color: #888888;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.5s ease;
}

.breadcrumb a:hover {
    color: #FFFFFF;
    transition: all 0.5s ease;
}

.main-content {
    display: flex;
}

.sidebar {
    width: 250px;
    background: #1f2937;
    border-right: 1px solid #374151;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stats {
    background: #111827;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid #374151;
}

.stats h3 {
    color: #8b5cf6;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #374151;
    color: #d1d5db;
}

.stat-item:last-child {
    border-bottom: none;
}

.actions {
    background: #111827;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid #374151;
}

.actions h3 {
    color: #8b5cf6;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-area {
    flex: 1;
    padding: 2rem;
    position: relative;
    background: #111111;
    border-radius: 12px;
}

.selector {
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}

.selector h3 {
    margin-bottom: 1.5rem;
    color: #8b5cf6;
}

.selector-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #000000;
    border-top: 5px solid #FFFFFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.list-container {
    border-radius: 12px;
}

.items-container.list-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    color: #e5e7eb;
    background: #000000;
    transition: all 0.5s;
    margin-bottom: 20px;
}

.item:hover {
    transition: all 0.5s;
    box-shadow: 0 1px 10px rgba(255, 255, 255, 1);
}

.item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    margin-right: 1rem;
    color: #666666;
    font-size: 1.2rem;
}

.item-info {
    flex: 1;
}

.item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #f3f4f6;
}

.item-details {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.item-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-private {
    background: rgba(220, 38, 38, 0.2);
    color: #f87171;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.badge-public {
    background: rgba(22, 163, 74, 0.2);
    color: #4ade80;
    border: 1px solid rgba(22, 163, 74, 0.3);
}

.badge-file {
    background: rgba(29, 78, 216, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(29, 78, 216, 0.3);
}

.badge-folder {
    background: rgba(217, 119, 6, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(217, 119, 6, 0.3);
}

.item-actions {
    display: flex;
    gap: 0.5rem;
    color: #9ca3af;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #9ca3af;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #6b7280;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #000000;
    color: white;
}

.btn-primary:hover {
    background: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.5);
}

.btn-secondary {
    background: #000000;
    color: #666666;
    border: 1px solid #111111;
}

.btn-secondary:hover {
    background: #111111;
}

.btn-success {
    background: #059669;
    color: white;
    border: 1px solid #059669;
}

.btn-success:hover {
    background: #047857;
    border-color: #047857;
}

.btn-action {
    width: 100%;
    margin-bottom: 0.5rem;
    background: #374151;
    color: #e5e7eb;
    border: 1px solid #4b5563;
}

.btn-action:hover {
    background: #4b5563;
    border-color: #6b7280;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s;
    align-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: #000000;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-content.large {
    max-width: 1000px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-header h2 {
    color: #f3f4f6;
    font-size: 1.25rem;
    font-weight: 600;
}

.close {
    color: #9ca3af;
    font-size: 1.75rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: #f3f4f6;
}

.modal-body {
    padding: 1.5rem;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
    background: #000000;
    color: #e5e7eb;
}

.modal-footer {
    padding: 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background: #111111;
    border-radius: 0px 0px 20px 20px;
}

.form-group {
    margin-bottom: 1.5rem;
    justify-self: center;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e5e7eb;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #111111;
    border: 1px solid #000000;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
    color: #f3f4f6;
}

.form-group input:focus {
    outline: none;
    border-color: #000000;
}

.form-group input::placeholder {
    color: #9ca3af;
}

.message {
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.message.error {
    background: rgba(220, 38, 38, 0.2);
    color: #f87171;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.message.success {
    background: rgba(22, 163, 74, 0.2);
    color: #4ade80;
    border: 1px solid rgba(22, 163, 74, 0.3);
}

#previewContent {
    text-align: center;
}

#previewContent img, #previewContent video {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.footer {
    padding: 1rem 2rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #374151;
    }
    
    .header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
    }
    
    .selector-buttons {
        flex-direction: column;
    }
}