583 lines
10 KiB
CSS

/**
* Custom Styles for Telvero Talpa Planning System
*/
:root {
--text-color: #404040;
--brand-color: #32327D;
--accent-color: #32B4AA;
--primary-color: #32327D;
--secondary-color: #32327D;
--success-color: #2ecc71;
--warning-color: #f39c12;
--danger-color: #e74c3c;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
color: var(--text-color);
}
/* Navigation */
.navbar-brand {
font-weight: 600;
font-size: 1.3rem;
color: var(--brand-color) !important;
}
.navbar-dark .navbar-brand {
color: #ffffff !important;
}
.navbar-dark {
background-color: var(--brand-color) !important;
}
/* Cards */
.card {
border: none;
border-radius: 8px;
transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}
.card-header {
border-radius: 8px 8px 0 0 !important;
font-weight: 600;
}
.card-header.bg-primary {
background-color: var(--brand-color) !important;
}
/* Buttons */
.btn {
border-radius: 6px;
font-weight: 500;
transition: all 0.2s;
}
.btn:hover {
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.btn-primary {
background-color: var(--brand-color);
border-color: var(--brand-color);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
background-color: #28286a;
border-color: #28286a;
}
.btn-outline-primary {
color: var(--brand-color);
border-color: var(--brand-color);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
background-color: var(--brand-color);
border-color: var(--brand-color);
color: #ffffff;
}
/* Tables */
.table {
border-radius: 8px;
overflow: hidden;
}
.table thead th {
font-weight: 600;
text-transform: uppercase;
font-size: 0.85rem;
letter-spacing: 0.5px;
}
/* Badges */
.badge {
padding: 0.4em 0.8em;
font-weight: 500;
border-radius: 4px;
}
/* Calendar Specific Styles */
#calendar {
background: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
/* Vertical Calendar (timeGrid) Styles - very compact */
.fc-timegrid-event {
border-radius: 3px;
padding: 1px 3px !important;
cursor: move;
transition: transform 0.2s, box-shadow 0.2s;
border-width: 1px;
min-height: 18px;
}
.fc-timegrid-event:hover {
transform: translateX(2px);
box-shadow: 0 3px 8px rgba(0,0,0,0.2);
z-index: 100;
}
.fc-timegrid-event .fc-event-main {
padding: 0px !important;
}
.fc-timegrid-event .fc-event-main-frame {
padding: 1px 2px !important;
}
/* Timeline Calendar Styles */
.fc-timeline-event {
border-radius: 4px;
padding: 2px 4px;
cursor: move;
transition: transform 0.2s;
}
.fc-timeline-event:hover {
transform: scale(1.02);
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
/* General Event Styles */
.fc-event {
border-radius: 4px;
cursor: move;
transition: all 0.2s;
}
.fc-event-title {
font-weight: 600;
line-height: 1.3;
}
.fc-event-time {
font-size: 0.85em;
opacity: 0.9;
}
/* Make events more readable in vertical view */
.fc-timegrid-event-harness {
margin-right: 2px;
}
.fc-timegrid-col-events {
margin: 0 2px;
}
/* Improve time slot visibility - 150px per 15 minutes */
.fc-timegrid-slot {
height: 20px !important;
}
.fc-timegrid-slot-label {
font-weight: 500;
font-size: 0.85em;
padding: 4px 6px;
line-height: 1.3;
}
/* Make slot lines visible */
.fc-timegrid-slot-minor {
border-top-style: solid;
border-top-width: 1px;
border-top-color: #f0f0f0;
}
.fc-timegrid-slot-major {
border-top-width: 2px;
border-top-color: #dee2e6;
}
/* Current time indicator */
.fc-timegrid-now-indicator-line {
border-color: #e74c3c;
border-width: 2px;
}
.fc-timegrid-now-indicator-arrow {
border-color: #e74c3c;
}
/* Block background events */
.fc-bg-event {
opacity: 1 !important;
border: 1px dashed rgba(0,0,0,0.1);
}
.fc-timegrid .fc-bg-event {
opacity: 0.8 !important;
}
/* Block info cards */
#blockInfoContainer .card {
transition: transform 0.2s;
}
#blockInfoContainer .card:hover {
transform: translateY(-2px);
}
/* Resource TimeGrid specific styles */
.fc-resource-timeline-divider,
.fc-resource-timegrid-divider {
width: 2px;
background: #dee2e6;
}
.fc-col-header-cell {
background: #f8f9fa;
font-weight: 600;
border-right: 2px solid #dee2e6 !important;
}
.fc-timegrid-col {
border-right: 2px solid #dee2e6 !important;
}
/* Make resource columns more distinct */
.fc-timegrid-col.fc-resource {
background: rgba(255, 255, 255, 0.5);
}
.fc-timegrid-col.fc-resource:nth-child(even) {
background: rgba(248, 249, 250, 0.5);
}
/* Resource header styling */
.fc-col-header-cell-cushion {
padding: 8px 4px;
font-size: 0.95em;
}
/* Improve event spacing in resource columns */
.fc-timegrid-event-harness {
margin-right: 3px;
}
/* Resource background events (blocks) */
.fc-timegrid-col .fc-bg-event {
opacity: 0.15 !important;
border-left: 3px solid rgba(0,0,0,0.2);
border-right: 3px solid rgba(0,0,0,0.2);
}
/* Infomercial Sidebar */
.infomercial-sidebar {
max-height: 600px;
overflow-y: auto;
background: #f8f9fa;
border-radius: 8px;
padding: 15px;
}
.infomercial-item {
background: white;
border-radius: 6px;
padding: 12px;
margin-bottom: 10px;
cursor: move;
border-left: 4px solid;
transition: all 0.2s;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.infomercial-item:hover {
transform: translateX(5px);
box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.infomercial-item.dragging {
opacity: 0.5;
}
.infomercial-title {
font-weight: 600;
font-size: 0.95rem;
margin-bottom: 4px;
}
.infomercial-duration {
font-size: 0.85rem;
color: #6c757d;
}
.infomercial-series {
font-size: 0.8rem;
font-weight: 500;
opacity: 0.8;
}
/* Block Time Editor */
.block-time-editor {
background: #fff3cd;
border: 2px dashed #ffc107;
border-radius: 6px;
padding: 10px;
margin-bottom: 15px;
}
.block-time-input {
font-weight: 600;
font-size: 1.1rem;
border: 2px solid #ffc107;
}
/* Status Indicators */
.status-pending {
background-color: #ffc107;
color: #000;
}
.status-synced {
background-color: #28a745;
color: #fff;
}
.status-error {
background-color: #dc3545;
color: #fff;
}
/* Loading Spinner */
.loading-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.5);
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
}
.spinner-border-lg {
width: 3rem;
height: 3rem;
}
/* Responsive */
@media (max-width: 768px) {
.infomercial-sidebar {
max-height: 300px;
margin-bottom: 20px;
}
.card {
margin-bottom: 15px;
}
}
/* Scrollbar Styling */
.infomercial-sidebar::-webkit-scrollbar {
width: 8px;
}
.infomercial-sidebar::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 4px;
}
.infomercial-sidebar::-webkit-scrollbar-thumb {
background: #888;
border-radius: 4px;
}
.infomercial-sidebar::-webkit-scrollbar-thumb:hover {
background: #555;
}
/* Alert Animations */
@keyframes slideInDown {
from {
transform: translateY(-100%);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
.alert {
animation: slideInDown 0.3s ease-out;
}
/* Color Picker */
.color-preview {
width: 40px;
height: 40px;
border-radius: 6px;
border: 2px solid #dee2e6;
cursor: pointer;
transition: transform 0.2s;
}
.color-preview:hover {
transform: scale(1.1);
border-color: #adb5bd;
}
/* Dashboard Stats */
.stat-card {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border-radius: 12px;
padding: 20px;
margin-bottom: 20px;
}
.stat-card.success {
background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}
.stat-card.warning {
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
.stat-card.info {
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
.stat-number {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 5px;
}
.stat-label {
font-size: 0.9rem;
opacity: 0.9;
text-transform: uppercase;
letter-spacing: 1px;
}
/* Timeline View Enhancements */
.fc-timeline-event {
border-radius: 4px;
}
.fc-timeline-event .fc-event-main {
padding: 4px 8px;
}
/* Conflict Warning */
.conflict-warning {
background: #fff3cd;
border-left: 4px solid #ffc107;
padding: 12px;
border-radius: 4px;
margin-bottom: 15px;
}
/* Success Message */
.success-message {
background: #d4edda;
border-left: 4px solid #28a745;
padding: 12px;
border-radius: 4px;
margin-bottom: 15px;
}
/* Form Enhancements */
.form-control:focus,
.form-select:focus {
border-color: var(--accent-color);
box-shadow: 0 0 0 0.2rem rgba(50, 180, 170, 0.25);
}
/* Tooltip Styling */
.tooltip-inner {
background-color: var(--brand-color);
border-radius: 4px;
padding: 8px 12px;
}
/* Sync Status Indicators */
.sync-indicator {
font-size: 1.2rem;
cursor: help;
display: inline-block;
transition: transform 0.2s;
}
.sync-indicator.sync-success {
color: #28a745;
}
.sync-indicator.sync-pending {
color: #dc3545;
}
.sync-indicator.sync-error {
color: #ffc107;
}
.sync-indicator:hover {
transform: scale(1.2);
}
/* Block Sync Status Badges */
.block-sync-status {
font-size: 0.85rem;
padding: 0.35em 0.65em;
font-weight: 600;
border-radius: 4px;
display: inline-flex;
align-items: center;
gap: 4px;
}
.block-sync-status.block-sync-complete {
background-color: #28a745;
color: white;
}
.block-sync-status.block-sync-partial {
background-color: #ffc107;
color: #000;
}
.block-sync-status.block-sync-none {
background-color: #dc3545;
color: white;
}
.block-sync-status.block-sync-empty {
background-color: #6c757d;
color: white;
}
/* Print Styles */
@media print {
.navbar,
.btn,
.infomercial-sidebar {
display: none !important;
}
.card {
box-shadow: none !important;
border: 1px solid #dee2e6 !important;
}
}