Files
Huntarr/frontend/static/css/requestarr.css
Admin9705 91a32ded94 Enhance Requestarr styles and remove Recent Requests section
- Updated CSS for the Requestarr module to improve visual aesthetics with new gradients, borders, and shadows.
- Removed the Recent Requests section from the HTML template to streamline the interface and focus on core functionalities.
2025-06-20 01:43:45 -04:00

531 lines
11 KiB
CSS

/* Requestarr Module Styles */
.requestarr-container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
.requestarr-header {
text-align: center;
margin-bottom: 30px;
}
.requestarr-header h1 {
color: #fff;
margin-bottom: 10px;
}
.requestarr-header p {
color: #b0b0b0;
font-size: 16px;
}
/* Search Section */
.search-section {
background: linear-gradient(145deg, rgba(30, 39, 56, 0.6), rgba(22, 28, 40, 0.7));
border: 1px solid rgba(90, 109, 137, 0.1);
border-radius: 12px;
padding: 30px;
margin-bottom: 30px;
backdrop-filter: blur(10px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.search-box {
position: relative;
max-width: 600px;
margin: 0 auto;
}
#requestarr-search {
width: 100%;
padding: 15px 20px;
font-size: 18px;
border: 1px solid rgba(90, 109, 137, 0.2);
border-radius: 25px;
background: linear-gradient(145deg, rgba(15, 23, 36, 0.7), rgba(22, 30, 45, 0.5));
color: #fff;
outline: none;
transition: all 0.3s ease;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
backdrop-filter: blur(5px);
}
#requestarr-search:focus {
border-color: rgba(52, 152, 219, 0.5);
box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
}
#requestarr-search::placeholder {
color: rgba(255, 255, 255, 0.6);
}
/* Results Section */
.results-section {
margin-bottom: 30px;
}
#requestarr-results {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
gap: 20px;
margin-top: 20px;
}
.result-card {
background: linear-gradient(145deg, rgba(30, 39, 56, 0.4), rgba(22, 28, 40, 0.5));
border-radius: 15px;
overflow: hidden;
transition: all 0.3s ease;
border: 1px solid rgba(90, 109, 137, 0.1);
backdrop-filter: blur(10px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.result-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
border-color: rgba(90, 109, 137, 0.2);
}
.result-poster {
position: relative;
height: 200px;
overflow: hidden;
}
.result-poster img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s ease;
}
.result-card:hover .result-poster img {
transform: scale(1.05);
}
.media-type-badge {
position: absolute;
top: 10px;
right: 10px;
background: rgba(0, 0, 0, 0.8);
color: #fff;
padding: 5px 10px;
border-radius: 15px;
font-size: 14px;
}
.result-info {
padding: 20px;
}
.result-title {
color: #fff;
font-size: 18px;
font-weight: 600;
margin: 0 0 10px 0;
line-height: 1.3;
}
.result-overview {
color: #b0b0b0;
font-size: 14px;
line-height: 1.4;
margin: 0 0 15px 0;
}
.result-meta {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
font-size: 14px;
}
.rating {
color: #ffd700;
font-weight: 600;
}
.media-type {
color: #4CAF50;
font-weight: 600;
}
/* Availability Status */
.availability-status {
display: flex;
align-items: center;
gap: 8px;
margin: 10px 0;
padding: 8px 12px;
border-radius: 6px;
font-size: 14px;
font-weight: 500;
}
.status-available {
background: rgba(76, 175, 80, 0.2);
color: #4CAF50;
border: 1px solid rgba(76, 175, 80, 0.3);
}
.status-requested {
background: rgba(255, 193, 7, 0.2);
color: #FFC107;
border: 1px solid rgba(255, 193, 7, 0.3);
}
.status-requestable {
background: rgba(33, 150, 243, 0.2);
color: #2196F3;
border: 1px solid rgba(33, 150, 243, 0.3);
}
.status-missing-episodes {
background: rgba(255, 152, 0, 0.2);
color: #FF9800;
border: 1px solid rgba(255, 152, 0, 0.3);
}
.status-error {
background: rgba(244, 67, 54, 0.2);
color: #F44336;
border: 1px solid rgba(244, 67, 54, 0.3);
}
.status-unknown {
background: rgba(158, 158, 158, 0.2);
color: #9E9E9E;
border: 1px solid rgba(158, 158, 158, 0.3);
}
.status-icon {
font-size: 16px;
}
.status-text {
font-weight: 500;
}
/* Request Section */
.request-section {
display: flex;
justify-content: center;
margin-top: 15px;
}
.request-btn {
padding: 10px 20px;
border: none;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
white-space: nowrap;
min-width: 120px;
}
.btn-primary {
background: linear-gradient(135deg, #4CAF50, #45a049);
color: #fff;
}
.btn-primary:hover:not(:disabled) {
background: linear-gradient(135deg, #45a049, #3d8b40);
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}
.btn-warning {
background: linear-gradient(135deg, #FF9800, #F57C00);
color: #fff;
}
.btn-warning:hover:not(:disabled) {
background: linear-gradient(135deg, #F57C00, #E65100);
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
}
.btn-disabled {
background: rgba(255, 255, 255, 0.1);
color: rgba(255, 255, 255, 0.5);
cursor: not-allowed;
}
.request-btn:disabled {
background: rgba(255, 255, 255, 0.1);
color: rgba(255, 255, 255, 0.5);
cursor: not-allowed;
}
/* Loading and Status Messages */
.loading, .error, .no-results {
text-align: center;
padding: 40px;
color: #b0b0b0;
font-size: 16px;
}
.error {
color: #f44336;
}
.loading {
color: #4CAF50;
}
.loading::after {
content: '';
display: inline-block;
width: 20px;
height: 20px;
border: 2px solid #4CAF50;
border-radius: 50%;
border-top-color: transparent;
animation: spin 1s linear infinite;
margin-left: 10px;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* Settings Section */
.settings-section {
background: linear-gradient(145deg, rgba(30, 39, 56, 0.6), rgba(22, 28, 40, 0.7));
border: 1px solid rgba(90, 109, 137, 0.1);
border-radius: 12px;
padding: 30px;
margin-bottom: 30px;
backdrop-filter: blur(10px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.settings-section h2 {
color: #fff;
margin-bottom: 20px;
}
.form-group {
margin-bottom: 20px;
}
.form-group label {
display: block;
color: #fff;
margin-bottom: 8px;
font-weight: 600;
}
.form-group input[type="text"] {
width: 100%;
padding: 12px 15px;
border: 1px solid rgba(90, 109, 137, 0.2);
border-radius: 8px;
background: linear-gradient(145deg, rgba(15, 23, 36, 0.7), rgba(22, 30, 45, 0.5));
color: #fff;
font-size: 14px;
font-weight: 500;
transition: all 0.2s ease;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
backdrop-filter: blur(5px);
outline: none;
}
.form-group input[type="text"]:focus {
border-color: rgba(52, 152, 219, 0.5);
box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
}
.form-group select {
width: 100%;
padding: 12px 15px;
border: 1px solid rgba(90, 109, 137, 0.2);
border-radius: 8px;
background: linear-gradient(145deg, rgba(15, 23, 36, 0.7), rgba(22, 30, 45, 0.5));
color: #fff;
font-size: 14px;
font-weight: 500;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A6D89' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 15px center;
transition: all 0.2s ease;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
backdrop-filter: blur(5px);
outline: none;
}
.form-group select:focus {
border-color: rgba(52, 152, 219, 0.5);
box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
}
.form-group select option {
background-color: rgba(22, 30, 45, 0.95);
color: #fff;
padding: 10px 15px;
border: none;
font-size: 14px;
}
.form-group select option:hover,
.form-group select option:focus {
background-color: rgba(52, 152, 219, 0.8);
color: #ffffff;
}
.form-group select option:checked {
background-color: rgba(52, 152, 219, 0.9);
color: #ffffff;
font-weight: 600;
}
.toggle-group {
display: flex;
align-items: center;
gap: 10px;
}
.toggle-switch {
position: relative;
display: inline-block;
width: 40px;
height: 20px;
margin-right: 10px;
flex-shrink: 0;
}
.toggle-switch input {
opacity: 0;
width: 0;
height: 0;
}
.toggle-slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(145deg, rgba(30, 39, 56, 0.6), rgba(22, 28, 40, 0.7));
border: 1px solid rgba(90, 109, 137, 0.2);
transition: .4s;
border-radius: 20px;
}
.toggle-slider:before {
position: absolute;
content: "";
height: 12px;
width: 12px;
left: 4px;
bottom: 3px;
background-color: white;
transition: .4s;
border-radius: 50%;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
input:checked + .toggle-slider {
background: linear-gradient(145deg, rgba(41, 128, 185, 0.7), rgba(52, 152, 219, 0.8));
}
input:checked + .toggle-slider:before {
transform: translateX(20px);
}
.save-btn {
padding: 12px 30px;
background: linear-gradient(135deg, #4CAF50, #45a049);
color: #fff;
border: none;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
}
.save-btn:hover {
background: linear-gradient(135deg, #45a049, #3d8b40);
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}
/* Notifications */
.notification {
position: fixed;
top: 20px;
right: 20px;
padding: 15px 20px;
border-radius: 8px;
color: #fff;
font-weight: 600;
z-index: 1000;
animation: slideIn 0.3s ease;
}
.notification.success {
background: linear-gradient(135deg, #4CAF50, #45a049);
}
.notification.error {
background: linear-gradient(135deg, #f44336, #d32f2f);
}
.notification.warning {
background: linear-gradient(135deg, #ff9800, #f57c00);
}
.notification.info {
background: linear-gradient(135deg, #2196F3, #1976D2);
}
@keyframes slideIn {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
/* Responsive Design */
@media (max-width: 768px) {
.requestarr-container {
padding: 15px;
}
#requestarr-results {
grid-template-columns: 1fr;
gap: 15px;
}
.result-card {
margin: 0;
}
.request-section {
flex-direction: column;
gap: 10px;
}
.instance-dropdown,
.request-btn {
width: 100%;
}
.search-section,
.settings-section {
padding: 20px;
}
}