/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
}

/* Authentication Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    padding: 20px;
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 420px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #667eea;
}

.auth-header p {
    color: #666;
    font-size: 1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.form-group input {
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.error-message {
    display: none;
    padding: 12px;
    background: #fee;
    color: #c33;
    border-radius: 8px;
    font-size: 0.9rem;
}

.success-message {
    display: none;
    padding: 12px;
    background: #efe;
    color: #3c3;
    border-radius: 8px;
    font-size: 0.9rem;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
    color: #666;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Dashboard Layout */
.dashboard {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.navbar {
    background: white;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

#userGreeting {
    font-weight: 600;
    color: #333;
}

.main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid #e1e8ed;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e1e8ed;
}

.sidebar-header h3 {
    font-size: 1.2rem;
    color: #333;
}

.btn-icon {
    background: #667eea;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-icon:hover {
    background: #5568d3;
    transform: scale(1.1);
}

.quick-folders,
.folder-list {
    padding: 10px;
}

.folder-item {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
    transition: all 0.3s;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.folder-item:hover {
    background: #f5f7fa;
}

.folder-item.active {
    background: #667eea;
    color: white;
    font-weight: 600;
}

.folder-item .delete-folder {
    margin-left: auto;
    color: #dc3545;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.folder-item:hover .delete-folder {
    opacity: 1;
}

.sidebar-footer {
    padding: 20px;
    margin-top: auto;
    border-top: 1px solid #e1e8ed;
}

/* Main Content */
.content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background: #f5f7fa;
}

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

.breadcrumb {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.actions {
    display: flex;
    gap: 12px;
}

/* Drop Zone */
.drop-zone {
    border: 3px dashed #cbd5e0;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 24px;
    transition: all 0.3s;
    background: white;
}

.drop-zone.dragover {
    border-color: #667eea;
    background: #f0f4ff;
}

.drop-zone p {
    color: #666;
    font-size: 1.1rem;
}

/* Files Grid */
.files-container {
    background: white;
    border-radius: 12px;
    padding: 24px;
    min-height: 400px;
}

.files-grid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* display: grid; */
    /* grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); */
    gap: 16px;
}

.file-card {
    display: flex;
    background: #f8f9fa;
    border: 2px solid #e1e8ed;
    width: 100%;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s;

    cursor: pointer;
}

.info-con {
    flex: 1;
    margin-left: 16px;
    margin-right: 16px;
    text-align: left;
}

.file-card:hover {
    /* transform: translateY(-4px); */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.file-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.file-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    word-break: break-word;
    font-size: 0.9rem;
}

.file-info {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 12px;
}

.file-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-action {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-download {
    background: #28a745;
    color: white;
}

.btn-download:hover {
    background: #218838;
}

.btn-override {
    background: #ffc107;
    color: #333;
}

.btn-override:hover {
    background: #e0a800;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1.1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    animation: slideIn 0.3s;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e1e8ed;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.3rem;
    color: #333;
}

.close {
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e1e8ed;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.input-field {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
}

.input-field:focus {
    outline: none;
    border-color: #667eea;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        max-width: 280px;
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        z-index: 100;
        transition: left 0.3s;
    }

    .sidebar.active {
        left: 0;
    }

    .files-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}




/* Loading Bar */

/* body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  height: 100vh;
  overflow: hidden;
} */

#loading-bar {
    width: 50vw;
    height: 5vw;
    min-height: 24px;
    background-color: #eaeaea;
    border: 1vw solid #fff;
    border-radius: 5vw;
    box-shadow: 0 0 2vw rgba(0, 127, 255, 0.25);
    overflow: hidden;
}

#loading-bar.complete {
    transition: 0.8s ease;
    transform: rotate(-180deg);
}

#loading-bar.complete #progress {
    transition: 0.4s ease;
    width: 0% !important;
}

#progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(#25C42F, #25c491);
    transition: 0.5s ease;
}

.nav-progress p {
    margin-top: 2vw;
    font-family: arial;
    font-size: 2vw;
}