* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Roboto', sans-serif; background-color: #f4f4f4; color: #333; display: flex; overflow-x: hidden; height: 700px; } .navbar { position: fixed; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; background-color: #333; color: #fff; padding: 10px 20px; z-index: 100; } .logo { margin-left: -10px; height: 40px; cursor: pointer; } .logo-text { font-size: 1.8em; font-weight: 500; margin-left: 10px; display: inline-block; } .navbar-left { display: flex; align-items: center; } .navbar-right { display: flex; align-items: center; } .mode-toggle { position: relative; width: 60px; height: 30px; background-color: #000; border-radius: 15px; cursor: pointer; transition: background-color 0.3s ease; } .toggle-button { position: absolute; top: 2px; left: 2px; width: 26px; height: 26px; background-color: #fff; border-radius: 50%; transition: transform 0.3s ease; } .mode-toggle.dark-mode { background-color: #fff; } .mode-toggle.dark-mode .toggle-button { background-color: #000; transform: translateX(30px); } .mode-label { margin-left: 10px; font-size: 16px; } .sidebar { position: fixed; left: 0; top: 50px; bottom: 0; background-color: #222; width: 60px; transition: width 0.3s ease; z-index: 99; } .sidebar.expanded { width: 200px; } .sidebar-toggle { width: 20px; height: 20px; background-color: #fff; border: none; border-radius: 50%; cursor: pointer; margin: 20px auto; display: flex; justify-content: center; align-items: center; transition: background-color 0.3s ease; position: absolute; top: 10px; left: 18px; } .sidebar-toggle:hover { background-color: #ccc; } .sidebar-content { margin-top: 60px; /* Adjust to move content up */ display: flex; flex-direction: column; align-items: center; } .sidebar-item { display: flex; align-items: center; background: none; border: none; color: #fff; cursor: pointer; margin: 2px 0; padding: 10px; width: 100%; text-align: left; transition: background-color 0.3s ease; } .sidebar-item:hover { background-color: #333; } .sidebar-item img { width: 40px; height: 40px; margin-right: 10px; } .sidebar-text { font-family: Verdana, Geneva, Tahoma, sans-serif; font-size: 15px; display: none; opacity: 0; white-space: nowrap; } .sidebar.expanded .sidebar-text { display: inline-block; animation: typewriter 1s steps(10) 0.2s forwards; } .container { margin-top: 80px; padding-left: 80px; width: 100%; height: 650px; transition: padding-left 0.3s ease; } .section { display: none; } .section.active { display: block; } /* Add Picture section styles */ #picture-section { padding: 20px; background-color: #fff; border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } #picture-section h2 { font-size: 24px; margin-bottom: 20px; } #picture-form { display: flex; flex-direction: column; gap: 15px; max-width: 400px; } #picture-form label { font-size: 18px; font-weight: bold; } #picture-form input[type="text"], #picture-form input[type="file"] { width: 100%; padding: 10px; font-size: 16px; border: 1px solid #ccc; border-radius: 4px; } #picture-form input[type="file"] { padding: 8px; /* Adjust as needed */ } #picture-form button[type="submit"] { padding: 12px 20px; background-color: #333; color: #fff; border: none; border-radius: 4px; font-size: 18px; cursor: pointer; transition: background-color 0.3s ease; } #picture-form button[type="submit"]:hover { background-color: #555; } .picture-container { display: flex; gap: 30px; } .picture-container form { flex: 1; max-width: 400px; } .picture-container .preview-metadata { flex: 1; display: flex; flex-direction: column; gap: 20px; } .picture-preview { border: 1px solid #ccc; padding: 10px; border-radius: 4px; background-color: #f9f9f9; } .picture-preview img { max-width: 100%; max-height: 300px; /* Adjust max-height as needed */ display: block; margin: 0 auto; } .metadata { padding: 10px; border: 1px solid #ccc; border-radius: 4px; background-color: #f9f9f9; } .metadata h3 { font-size: 20px; margin-bottom: 10px; } .metadata p { margin-bottom: 5px; } .metadata p strong { font-weight: bold; } #upload-status { margin-top: 15px; font-size: 16px; color: #888; } /**/ /* Manage Pictures */ /**/ #manage-pictures-section { padding: 20px; background-color: #fff; border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); transition: background-color 0.3s ease, box-shadow 0.3s ease; } #manage-pictures-section h2 { font-size: 24px; margin-bottom: 20px; font-family: 'Roboto', sans-serif; /* Ensure consistent font */ color: #333; /* Adjusted text color */ } #pictures-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-top: 20px; } .picture-item { border: 1px solid #ccc; padding: 10px; border-radius: 4px; background-color: #f9f9f9; display: flex; align-items: center; justify-content: space-between; transition: background-color 0.3s ease, transform 0.2s ease; /* Added transition for hover effect */ } .picture-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; transition: transform 0.3s ease; /* Smooth transition for image scaling */ } .picture-item span { margin-left: 10px; font-family: 'Roboto', sans-serif; /* Ensure consistent font */ } .picture-item:hover { background-color: #e0e0e0; /* Lighter background on hover */ transform: translateY(-3px); /* Lift effect on hover */ } #check-back-selected, #delete-selected, #group-selected, #rename-selected, #download-selected, #archive-selected { margin-top: 15px; padding: 10px 20px; background-color: #333; color: #fff; border: none; border-radius: 4px; font-size: 16px; cursor: pointer; transition: background-color 0.3s ease, transform 0.2s ease; /* Added transition for hover effect */ } #check-back-selected:hover, #delete-selected:hover, #group-selected:hover, #rename-selected:hover, #download-selected:hover, #archive-selected:hover { background-color: #555; /* Darker background on hover */ transform: translateY(-2px); /* Lift effect on hover */ } /* dashboard.css */ .video-container { margin-top: 20px; padding: 20px; background-color: #f9f9f9; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); display: flex; flex-direction: column; } .video-container form { flex: 1; max-width: 400px; } .video-container .preview-metadata { flex: 1; display: flex; justify-content: center; align-items: center; } .video-container .video-preview { width: auto; height: auto; border: 1px solid #ccc; border-radius: 4px; overflow: hidden; } .video-container video { width: 100%; height: 100%; object-fit: cover; } .video-container .progress-bar { width: 100%; height: 20px; background-color: #f0f0f0; border-radius: 10px; overflow: hidden; margin-bottom: 10px; } .video-container .bar { height: 100%; background-color: #4caf50; width: 0; transition: width 0.3s ease; } .video-container #upload-video-status { margin-top: 10px; padding: 10px; background-color: #e9f5f5; border-radius: 4px; } /**/ /* Analytics */ /**/ #analytics-section { padding: 50px; background-color: #f2f2f2; border-radius: 24px; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); margin-top: 50px; position: relative; overflow: hidden; background-image: url('../images/logo.png'); background-size: contain; background-position: center; background-repeat: no-repeat; height: 95%; width: 100%; } #analytics-section::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 24px; background-image: url('../images/bg.jpg'); background-size: cover; background-position: center; filter: blur(10px); /* Blur the background image */ transition: filter 0.3s ease; /* Smooth transition for blur effect */ } #analytics-section:hover::before { filter: blur(0); /* Remove blur on hover */ } #analytics-section h2 { font-size: 40px; margin-bottom: 35px; color: #040404; font-family: 'Roboto', sans-serif; text-align: center; position: relative; /* Ensure text is above background image */ z-index: 1; } .analytics-container { display: flex; gap: 40px; overflow-x: auto; padding-bottom: 20px; } .analytics-box { margin-top: 15px; padding: 30px; border-radius: 16px; background-color: #c391d6; /* Pale purple color */ box-shadow: 0 8px 16px rgba(230, 38, 38, 0.1); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative; flex: 0 0 auto; min-width: 300px; } .analytics-box h3 { font-size: 24px; margin-bottom: 20px; color: #333333; } .analytics-box p { font-size: 18px; color: #631dcb; margin: 0; } .analytics-box:hover { transform: translateY(-10px); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2); } .analytics-box:hover::before { opacity: 0; /* Remove overlay on hover */ } /* Manage Videos Section */ #manage-videos-section { background-color: #ffffff; padding: 40px; border-radius: 16px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); margin-top: 50px; } #manage-videos-section h2 { font-size: 32px; color: #333333; font-family: 'Roboto', sans-serif; margin-bottom: 20px; } #videos-list { margin-bottom: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; } .manage-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-start; } .manage-actions button, .manage-actions select { padding: 12px 20px; font-size: 16px; border: none; background-color: #4caf50; /* Green Button Color */ color: #ffffff; border-radius: 8px; cursor: pointer; transition: background-color 0.3s ease; } .manage-actions button:hover, .manage-actions select:hover { background-color: #45a049; /* Darker Green Hover Color */ } .manage-actions select { appearance: none; -webkit-appearance: none; -moz-appearance: none; padding-right: 30px; background-image: url('../static/images/arrow-down.png'); background-repeat: no-repeat; background-position: right center; } .manage-actions select:focus { outline: none; } .manage-actions button:focus { outline: none; } @media screen and (max-width: 768px) { .manage-actions { flex-direction: column; align-items: flex-start; } .manage-actions button, .manage-actions select { width: 100%; } }