Files
tickte-system/src/styles/global.css
2025-12-30 01:27:00 +01:00

694 lines
14 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--dark-bg: #1a202c;
--dark-card-bg: rgba(45, 55, 72, 0.95);
--dark-text: #e2e8f0;
--green-primary: #10b981;
--green-secondary: #059669;
--gray-700: #374151;
--gray-800: #1f2937;
--gray-900: #111827;
}
body {
font-family: 'Lato', sans-serif;
background-color: var(--dark-bg);
color: var(--dark-text);
overflow: hidden;
}
/* Scrollbar Styling */
::-webkit-scrollbar {
width: 12px;
}
::-webkit-scrollbar-track {
background: rgba(26, 32, 44, 0.5);
}
::-webkit-scrollbar-thumb {
background: var(--green-primary);
border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--green-secondary);
}
/* Text Selection */
::selection {
background: rgba(16, 185, 129, 0.3);
color: white;
}
/* Color Classes */
.bg-dark-grey { background-color: #616161 !important; }
.bg-light-grey { background-color: #f1f1f1 !important; }
.bg-white { background-color: #fff !important; }
.bg-black { background-color: #000 !important; }
.bg-green { background-color: #4CAF50 !important; }
.bg-teal { background-color: #009688 !important; }
.bg-blue { background-color: #2196F3 !important; }
.bg-blue-grey { background-color: #607D8B !important; }
.bg-red { background-color: #f44336 !important; }
.bg-yellow { background-color: #ffeb3b !important; }
.bg-amber { background-color: #ffc107 !important; }
.bg-orange { background-color: #ff9800 !important; }
.text-white { color: #fff !important; }
.text-black { color: #000 !important; }
.text-grey { color: #9e9e9e !important; }
.text-green { color: #4CAF50 !important; }
.text-red { color: #f44336 !important; }
/* Layout */
.container {
max-width: 1400px;
margin: 0 auto;
padding: 0 16px;
}
.main-content {
margin-top: 64px;
padding: 16px;
}
/* Navbar */
.navbar {
position: fixed;
top: 0;
left: 0;
right: 0;
background: linear-gradient(135deg, rgba(26, 32, 44, 0.98) 0%, rgba(17, 24, 39, 0.98) 100%);
border-bottom: 1px solid rgba(16, 185, 129, 0.2);
z-index: 199;
display: flex;
align-items: center;
padding: 0 8px;
}
.navbar-brand {
padding: 12px 16px;
color: #fff;
display: flex;
align-items: center;
gap: 8px;
font-weight: bold;
}
.navbar-nav {
display: flex;
list-style: none;
}
.nav-link {
padding: 16px 24px;
color: var(--dark-text);
text-decoration: none;
transition: all 0.2s ease;
border-radius: 6px;
}
.nav-link:hover {
background: rgba(16, 185, 129, 0.2);
color: var(--green-primary);
}
.nav-right {
margin-left: auto;
}
/* Buttons */
.btn {
padding: 10px 20px;
border: none;
cursor: pointer;
font-size: 14px;
border-radius: 8px;
font-weight: 600;
transition: all 0.2s ease;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.btn-dark {
background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
color: #fff;
}
.btn-dark:hover {
background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(74, 85, 104, 0.5);
}
.btn-green,
.btn-primary {
background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
color: #fff !important;
border: none !important;
}
.btn-green:hover,
.btn-primary:hover {
background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
}
.btn-teal {
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
color: #fff;
}
.btn-secondary {
background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%) !important;
color: #fff !important;
border: none !important;
}
/* Table */
.table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
color: var(--dark-text) !important;
background: transparent !important;
}
.table th,
.table td {
padding: 8px 12px;
text-align: left;
border: 1px solid rgba(16, 185, 129, 0.2);
background: transparent;
}
/* Remove borders between rowspan cells */
.table td[rowspan] {
border-top: 1px solid rgba(16, 185, 129, 0.2);
border-bottom: 1px solid rgba(16, 185, 129, 0.2);
border-left: 1px solid rgba(16, 185, 129, 0.2);
border-right: 1px solid rgba(16, 185, 129, 0.2);
}
.table th {
background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
color: var(--dark-text);
font-weight: bold;
}
.table tbody {
background: transparent;
}
.table-hover tbody tr {
background: transparent;
}
.table-hover tbody tr:hover {
background: transparent !important;
}
/* Spacer rows between tickets */
.spacer,
.spacer td {
background: transparent !important;
border: none !important;
}
/* Cards */
.card {
background: rgba(45, 55, 72, 0.95) !important;
border: 1px solid rgba(16, 185, 129, 0.2) !important;
border-radius: 8px;
margin-bottom: 16px;
color: var(--dark-text) !important;
}
.card-header {
padding: 12px 16px;
background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
color: #fff;
font-weight: bold;
border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}
.card-body {
padding: 16px;
color: var(--dark-text);
}
/* Forms */
.form-control,
.form-select {
width: 100%;
padding: 10px 14px;
border: 1px solid rgba(16, 185, 129, 0.3);
border-radius: 8px;
font-size: 14px;
background: rgba(31, 41, 55, 0.6) !important;
color: var(--dark-text) !important;
transition: all 0.2s ease;
}
.form-control::placeholder {
color: rgba(226, 232, 240, 0.5);
}
.form-control:focus,
.form-select:focus {
outline: none;
border-color: var(--green-primary) !important;
box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
background: rgba(31, 41, 55, 0.8) !important;
}
.form-group {
margin-bottom: 16px;
}
.form-label {
display: block;
margin-bottom: 4px;
font-weight: 500;
color: var(--dark-text);
}
select.form-control {
background: rgba(31, 41, 55, 0.6) !important;
color: var(--dark-text) !important;
}
textarea.form-control {
resize: vertical;
min-height: 100px;
}
/* Grid */
.row {
display: flex;
flex-wrap: wrap;
margin: 0 -8px;
}
.col {
padding: 0 8px;
}
.col-6 { width: 50%; }
.col-12 { width: 100%; }
/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-small { font-size: 12px; }
.text-large { font-size: 18px; }
.text-xlarge { font-size: 24px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.hidden { display: none; }
/* Ticket Row */
.ticket-row {
border: none !important;
background: transparent !important;
}
.ticket-row td {
background: rgba(45, 55, 72, 0.95);
border: 1px solid rgba(16, 185, 129, 0.2);
border-radius: 0 !important;
}
/* Second row of ticket (no top border to avoid line in rowspan cells) */
.ticket-row + .ticket-row td {
border-top: none;
}
.ticket-row:hover td {
background: rgba(45, 55, 72, 0.95);
}
.ticket-row:hover {
border: none;
box-shadow: none;
}
/* Collapsed Ticket - All 4 outermost corners rounded */
/* WOID cell (left side) - top and bottom corners */
.ticket-collapsed .ticket-id {
border-top-left-radius: 12px !important;
border-bottom-left-radius: 12px !important;
}
/* Lock cell (right side) - top and bottom corners */
.ticket-collapsed td.bg-dark-grey {
border-top-right-radius: 12px !important;
border-bottom-right-radius: 12px !important;
}
/* Expanded Ticket - Only top 2 outermost corners rounded */
/* WOID cell (left side) - only top corner, bottom stays square */
.ticket-expanded .ticket-id {
border-top-left-radius: 12px !important;
border-bottom-left-radius: 0 !important;
}
/* Lock cell (right side) - only top corner, bottom stays square */
.ticket-expanded td.bg-dark-grey {
border-top-right-radius: 12px !important;
border-bottom-right-radius: 0 !important;
}
/* Worksheet Expansion with Animation */
.worksheet-expansion {
animation: slideDown 0.4s ease-out;
}
.worksheet-cell {
background: transparent !important;
border: none !important;
padding: 0 !important;
}
.worksheet-cell .card {
border-radius: 0 0 12px 12px !important;
margin-top: -1px;
animation: fadeIn 0.4s ease-out;
}
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.ticket-id {
background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important;
color: #fff;
text-align: center;
vertical-align: middle;
font-size: 18px;
font-weight: bold;
padding: 16px;
border: 1px solid rgba(16, 185, 129, 0.2) !important;
transition: border-radius 0.3s ease;
}
/* WOID rounded when collapsed, square bottom when expanded */
.ticket-id:not(.ticket-id-expanded) {
border-radius: 12px;
}
.ticket-id-expanded {
border-radius: 12px 12px 0 0;
}
.ticket-time {
font-size: 11px;
color: #a0aec0;
}
.ticket-info {
background: rgba(31, 41, 55, 0.6) !important;
font-size: 13px;
color: var(--dark-text);
}
/* Status Colors */
.status-open { background: #4CAF50 !important; color: #fff !important; }
.status-occupied { background: #607D8B !important; color: #fff !important; }
.status-assigned { background: #009688 !important; color: #fff !important; }
.status-awaiting { background: #ff9800 !important; color: #fff !important; }
.status-closed { background: #9e9e9e !important; color: #fff !important; }
/* Priority Colors */
.priority-none { background: #2196F3 !important; color: #fff !important; }
.priority-low { background: #4CAF50 !important; color: #fff !important; }
.priority-medium { background: #ffc107 !important; color: #000 !important; }
.priority-high { background: #ff9800 !important; color: #fff !important; }
.priority-critical { background: #f44336 !important; color: #fff !important; }
/* Dropdown */
.dropdown {
position: relative;
display: inline-block;
width: 100%;
text-align: center;
}
.dropdown .btn {
width: 100%;
padding: 6px 12px;
font-size: 12px;
border: none !important;
box-shadow: none !important;
background: inherit !important;
color: inherit !important;
text-align: center;
display: inline-block;
margin: 0;
}
.dropdown-content {
display: none;
position: absolute;
background: rgba(45, 55, 72, 0.98);
min-width: 160px;
box-shadow: 0 8px 16px rgba(0,0,0,0.4);
border: 1px solid rgba(16, 185, 129, 0.3);
border-radius: 6px;
z-index: 100;
left: 50%;
transform: translateX(-50%);
}
.dropdown:hover .dropdown-content {
display: block;
}
.dropdown-item {
padding: 8px 16px;
color: var(--dark-text);
cursor: pointer;
display: block;
transition: background 0.2s ease;
}
.dropdown-item:hover {
background: rgba(16, 185, 129, 0.2);
color: var(--green-primary);
}
/* Modal/Overlay */
.overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,0.95);
z-index: 200;
overflow-y: auto;
padding: 60px 20px;
}
.overlay-close {
position: absolute;
top: 20px;
right: 45px;
font-size: 48px;
color: #fff;
cursor: pointer;
transition: all 0.2s ease;
}
.overlay-close:hover {
color: var(--green-primary);
transform: rotate(90deg);
}
.overlay-content {
max-width: 1000px;
margin: 0 auto;
color: #fff;
}
.modal-content {
background: rgba(45, 55, 72, 0.98) !important;
border: 1px solid rgba(16, 185, 129, 0.3) !important;
color: var(--dark-text) !important;
}
/* Slider */
.slider-container {
width: 100%;
padding: 8px 0;
}
.slider {
width: 100%;
height: 8px;
background: rgba(31, 41, 55, 0.6);
border-radius: 8px;
outline: none;
transition: all 0.2s;
-webkit-appearance: none;
}
.slider:hover {
background: rgba(31, 41, 55, 0.8);
}
.slider::-webkit-slider-thumb {
-webkit-appearance: none;
width: 20px;
height: 20px;
border-radius: 50%;
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
cursor: pointer;
box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
transition: all 0.2s;
}
.slider::-webkit-slider-thumb:hover {
transform: scale(1.1);
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.6);
}
.slider::-moz-range-thumb {
width: 20px;
height: 20px;
border-radius: 50%;
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
cursor: pointer;
box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
border: none;
transition: all 0.2s;
}
.slider::-moz-range-thumb:hover {
transform: scale(1.1);
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.6);
}
/* File Upload */
.drop-zone {
background: #616161;
border: 5px dashed #999;
padding: 40px;
text-align: center;
color: #fff;
cursor: pointer;
}
.drop-zone:hover {
border-color: #4CAF50;
}
/* Spinner */
.spinner {
border: 4px solid rgba(16, 185, 129, 0.2);
border-top: 4px solid var(--green-primary);
border-radius: 50%;
width: 40px;
height: 40px;
animation: spin 1s linear infinite;
margin: 0 auto;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
/* Modern Card Style */
.modern-card {
background: rgba(45, 55, 72, 0.95);
border-radius: 12px;
border: 1px solid rgba(16, 185, 129, 0.2);
padding: 16px;
margin-bottom: 16px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
transition: all 0.2s ease;
}
.modern-card:hover {
border-color: rgba(16, 185, 129, 0.4);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
/* Unified Control Panel - No internal rounded corners */
.control-panel-section {
padding: 16px;
border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}
.control-panel-section:last-child {
border-bottom: none;
}
/* Animations */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes slideIn {
from {
opacity: 0;
transform: translateX(-20px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
.fade-in {
animation: fadeIn 0.3s ease-in-out;
}
.slide-in {
animation: slideIn 0.3s ease-out;
}
/* Footer */
.footer {
background: linear-gradient(135deg, rgba(26, 32, 44, 0.98) 0%, rgba(17, 24, 39, 0.98) 100%);
border-top: 1px solid rgba(16, 185, 129, 0.2);
color: var(--dark-text);
text-align: center;
padding: 24px;
margin-top: 32px;
}
/* Responsive */
@media (max-width: 768px) {
.col-6 { width: 100%; }
.navbar-nav { display: none; }
}