/* =========================================================== GENERAL STYLES & BASE LAYOUT =========================================================== */ /* GENERAL STYLES */ body { font-family: 'Roboto', sans-serif; background-color: #f5f5f5; margin: 0; } /* CONTAINER */ .container { margin-top: 20px; } /* =========================================================== HEADER & NAVIGATION =========================================================== */ /* HEADER (Large Screens) */ header { display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: space-between !important; height: 100px !important; padding: 0 20px !important; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); background-color: #2196F3 !important; } .header-left { flex: 0 0 auto; } .header-left img { display: block; height: 60px; width: auto; } .header-title { position: absolute; /* Center the title using absolute positioning */ left: 50%; transform: translateX(-50%); text-align: center; margin: 0; color: white; font-size: 1.5em; } .header-title h1 { margin: 0; } .header-buttons { flex: 0 0 auto; display: flex; gap: 10px; align-items: center; } .header-buttons button { background: none; border: none; cursor: pointer; padding: 10px; border-radius: 50%; transition: background-color 0.2s ease, box-shadow 0.2s ease; } .header-buttons button:hover { background-color: rgba(255, 255, 255, 0.2); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); } /* Responsive Header (Small Screens) */ @media (max-width: 600px) { header { flex-direction: column !important; height: auto !important; padding: 10px 20px !important; position: relative !important; } /* Remove absolute positioning to let items stack */ .header-title { position: static !important; left: auto !important; transform: none !important; margin: 10px 0 !important; font-size: 1.2em !important; } /* Ensure logo and buttons are centered and full width */ .header-left, .header-buttons { position: static !important; transform: none !important; margin: 5px 0 !important; width: 100% !important; text-align: center !important; } .header-left img { height: 50px !important; } .header-buttons { justify-content: center !important; } } /* =========================================================== MATERIAL ICONS =========================================================== */ .material-icons { font-size: 24px; vertical-align: middle; color: white; } /* =========================================================== FORMS & LOGIN =========================================================== */ /* LOGIN FORM */ #loginForm { margin: 0 auto; max-width: 400px; background: white; padding: 20px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); border-radius: 4px; } /* =========================================================== MODALS & EDITOR MODALS =========================================================== */ /* General Modal Styles */ .modal { display: none; /* Hidden by default */ position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 1050; } .modal .modal-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; padding: 20px; border: 1px solid #ccc; border-radius: 4px; box-shadow: 0 4px 8px rgba(0,0,0,0.2); max-width: 400px; width: 90%; max-height: 90vh; overflow-y: auto; } /* Editor Modal */ .editor-modal { position: fixed; top: 50%; left: 50%; transform: translate(5%, 10%); background-color: #fff; /* Ensures modal is opaque */ padding: 20px; border: 1px solid #ccc; border-radius: 4px; width: 50vw; max-width: 90vw; min-width: 400px; height: 600px; max-height: 80vh; overflow: auto; resize: both; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); z-index: 1100; /* Ensure it's on top of any overlay */ } #deleteFolderMessage { white-space: normal; word-wrap: break-word; } /* =========================================================== LOGOUT & USER CONTROLS =========================================================== */ .logout-container { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; } #uploadBtn { font-size: 16px; padding: 10px 22px; align-items: center; } #customChooseBtn { background-color: #9E9E9E; color: #fff; border: none; border-radius: 4px; padding: 8px 18px; font-size: 16px; cursor: pointer; white-space: nowrap; /* Prevent text wrapping */ } /* For medium screens, reduce font size and padding */ @media (max-width: 768px) { #customChooseBtn { font-size: 14px; padding: 6px 14px; } } /* =========================================================== UPLOAD PROGRESS STYLES =========================================================== */ #uploadProgressContainer ul { list-style: none; padding: 0; margin: 0; } #uploadProgressContainer li { display: flex; align-items: center; margin-bottom: 10px; flex-wrap: wrap; } #uploadProgressContainer .file-preview { width: 32px !important; height: 32px !important; margin-right: 0; flex-shrink: 0; } #uploadProgressContainer .file-preview img { width: 32px !important; height: 32px !important; object-fit: cover; } #uploadProgressContainer .file-name { margin: 0 20px 0 2px; flex-grow: 1; word-break: break-word; } #uploadProgressContainer .progress { background-color: #e9ecef; border-radius: 5px; overflow: hidden; margin: 5px 0 10px; height: 24px; width: 250px; } #uploadProgressContainer .progress-bar { background-color: #007bff; height: 100%; line-height: 24px; color: #000; text-align: center; transition: width 0.4s ease; font-size: 0.9rem; } #uploadProgressContainer { margin-top: 20px; } /* =========================================================== RESPONSIVE ADJUSTMENTS (General Small Screens) =========================================================== */ @media (max-width: 768px) { .logout-container { position: static; align-items: flex-end; text-align: right; margin-top: 10px; } .logout-container button { width: auto; min-width: 120px; } .hide-small { display: none; } } @media (min-width: 768px) and (max-width: 991px) { .hide-medium { display: none !important; } } /* =========================================================== BUTTON STYLES (MATERIAL THEME) =========================================================== */ .btn { font-size: 0.9rem; border: none; border-radius: 4px; padding: 8px 16px; cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-block; } .btn:hover { opacity: 0.9; } /* Specific Action Buttons */ #deleteSelectedBtn { background-color: #f44336; /* Material red */ color: white; border: none; border-radius: 4px; padding: 8px 16px; } #deleteSelectedBtn:hover { background-color: #d32f2f; } #copySelectedBtn { background-color: #9E9E9E; /* Material grey */ color: white; border: none; border-radius: 4px; padding: 8px 16px; } #copySelectedBtn:hover { background-color: #757575; } #moveSelectedBtn { background-color: #ff9800; /* Material orange */ color: white; border: none; border-radius: 4px; padding: 8px 16px; } #moveSelectedBtn:hover { background-color: #fb8c00; } #downloadZipBtn { background-color: #009688; /* Material Teal */ color: white; border: none; border-radius: 4px; padding: 8px 16px; } #downloadZipBtn:hover { background-color: #00796B; /* A slightly darker teal for hover */ } /* File List Edit Button (Material Green) */ #fileList button.edit-btn { background-color: #4CAF50; color: white; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; white-space: nowrap; } #fileList button.edit-btn:hover { background-color: #43A047; } /* =========================================================== FILE LIST & TABLE STYLES =========================================================== */ #fileList table tr:nth-child(even) { background-color: transparent; /* Remove alternating grey rows */ } #fileList table tr:hover { background-color: #e0e0e0; } /* =========================================================== HEADINGS & FORM LABELS =========================================================== */ h2 { font-size: 2em; } .form-group { margin-bottom: 10px; } label { font-size: 0.9rem; } /* =========================================================== UTILITY CLASSES =========================================================== */ .align-items-center { display: flex; align-items: center; } .table th button { background: none; border: none; color: inherit; cursor: pointer; padding: 0; } /* INITIAL HIDE FORMS */ #loginForm, #uploadForm { display: none; } /* Remove bottom margin from the form group in cards */ .card-body .form-group { margin-bottom: 5px !important; } /* Create Folder Button */ #createFolderBtn { margin-top: 0px !important; } .folder-actions { display: flex; flex-wrap: nowrap; /* Prevent wrapping */ align-items: center; white-space: nowrap; /* Extra safeguard */ } /* Optional: On medium screens, if needed, ensure the container doesn't force wrapping */ @media (min-width: 600px) and (max-width: 992px) { .folder-actions { white-space: nowrap; } } /* Row Selected Highlight */ .row-selected { background-color: #f2f2f2 !important; } /* Custom Prev/Next Buttons */ .custom-prev-next-btn { background-color: #e0e0e0; color: #000; border: none; padding: 6px 12px; font-size: 14px; border-radius: 4px; margin: 0 4px; cursor: pointer; } .custom-prev-next-btn:hover:not(:disabled) { background-color: #d5d5d5; } /* Folder Options */ .folder-option:hover { background-color: #f0f0f0; } .folder-option.selected { background-color: #d0d0d0; } /* Custom Folder Card Body */ .custom-folder-card-body { padding-top: 5px !important; } /* =========================================================== TOAST NOTIFICATIONS =========================================================== */ #customToast { position: fixed; top: 20px; right: 20px; background: #333; color: #fff; padding: 15px; border-radius: 4px; box-shadow: 0 2px 6px rgba(0,0,0,0.3); opacity: 0; transition: opacity 0.5s ease; z-index: 9999; min-width: 250px; display: none; } #customToast.show { opacity: 1; } /* =========================================================== BUTTON WRAP (For File List Actions) =========================================================== */ .button-wrap { display: inline-flex; flex-wrap: wrap; align-items: left; gap: 2px; } /* Media Query for Button Wrap on Smaller Devices */ @media (max-width: 500px) { .button-wrap { display: flex; /* Use block-level flex */ width: 100%; /* Take full available width */ justify-content: center; } } /* =========================================================== FILE LIST SECTION =========================================================== */ #fileListContainer { padding: 10px; } #fileListTitle { font-size: 1.8em; margin-bottom: 15px; } .file-list-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; } .file-list-actions .action-btn { flex: 0 1 auto; } .modal-footer { margin-top: 15px; text-align: right; } .modal-input { width: 100%; margin-top: 10px; } /* Responsive File List Section (Small Devices) */ @media (max-width: 600px) { #fileListTitle { font-size: 1.4em; } .file-list-actions { flex-direction: column; align-items: stretch; } .file-list-actions .action-btn { width: 100%; } .modal-content { width: 95%; margin: 20% auto; } }