657 lines
13 KiB
CSS
657 lines
13 KiB
CSS
/* user.css - Dark Mode Default - Improved */
|
|
|
|
/* ===== FONT IMPORT ===== */
|
|
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
|
|
|
/* ===== CSS CUSTOM PROPERTIES ===== */
|
|
:root {
|
|
--primary-color: #4A90E2;
|
|
--primary-hover-color: #6fb4f5;
|
|
--secondary-color: #50E3C2;
|
|
--accent-color: #F5A623;
|
|
--success-color: #7ED321;
|
|
--danger-color: #D0021B;
|
|
--neutral-dark: #e0e0e0;
|
|
--neutral-medium: #aaaaaa;
|
|
--neutral-light: #777777;
|
|
--bg-color: #1e1e1e;
|
|
--card-bg-color: #2a2a2a;
|
|
--border-color: #444;
|
|
--shadow-color: rgba(0, 0, 0, 0.6);
|
|
--text-color: #e0e0e0;
|
|
--link-color: var(--primary-color);
|
|
--font-family: 'Inter', sans-serif;
|
|
--border-radius: 8px;
|
|
--card-padding: 15px;
|
|
--input-padding: 12px 15px;
|
|
--transition-speed: 0.2s ease-in-out;
|
|
--container-max-width: 1400px;
|
|
}
|
|
|
|
/* ===== RESET & BASE STYLES ===== */
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-family);
|
|
background-color: var(--bg-color);
|
|
color: var(--text-color);
|
|
font-size: 16px;
|
|
line-height: 1.6;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
/* ===== TYPOGRAPHY ===== */
|
|
h1, h2, h3, h4, h5, h6 {
|
|
color: var(--neutral-dark);
|
|
margin-bottom: 0.75em;
|
|
font-weight: 600;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
h1 { font-size: 2.2rem; }
|
|
h2 { font-size: 1.8rem; }
|
|
h3 { font-size: 1.4rem; }
|
|
|
|
/* ===== LINKS ===== */
|
|
a {
|
|
color: var(--link-color);
|
|
text-decoration: none;
|
|
transition: color var(--transition-speed);
|
|
cursor: pointer;
|
|
}
|
|
|
|
a:hover,
|
|
a:focus {
|
|
color: var(--primary-hover-color);
|
|
text-decoration: underline;
|
|
outline: none;
|
|
}
|
|
|
|
/* ===== LAYOUT ===== */
|
|
.container {
|
|
max-width: var(--container-max-width);
|
|
margin: 0 auto;
|
|
padding: 20px 30px;
|
|
width: 100%;
|
|
}
|
|
|
|
/* ===== HEADER ===== */
|
|
.header {
|
|
background: var(--card-bg-color);
|
|
padding: 20px var(--card-padding);
|
|
border-radius: var(--border-radius);
|
|
box-shadow: 0 2px 10px var(--shadow-color);
|
|
margin-bottom: 30px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.header h1 {
|
|
color: var(--primary-color);
|
|
font-size: 1.7rem;
|
|
font-weight: 700;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.header h1 i {
|
|
font-size: 1.6rem;
|
|
}
|
|
|
|
.user-actions {
|
|
display: flex;
|
|
gap: 20px;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.user-actions span {
|
|
color: var(--neutral-medium);
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* ===== FOOTER ===== */
|
|
.footer {
|
|
text-align: center;
|
|
margin-top: 50px;
|
|
padding: 25px;
|
|
color: var(--neutral-light);
|
|
font-size: 0.9rem;
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
/* ===== FORM ELEMENTS ===== */
|
|
.form-group {
|
|
margin-bottom: 20px;
|
|
width: 100%;
|
|
}
|
|
|
|
.form-group input[type="text"],
|
|
.form-group textarea,
|
|
.form-group select {
|
|
width: 100%;
|
|
padding: var(--input-padding);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--border-radius);
|
|
background-color: var(--bg-color);
|
|
color: var(--text-color);
|
|
font-family: var(--font-family);
|
|
font-size: 1rem;
|
|
transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
|
|
}
|
|
|
|
.form-group input[type="text"]:focus,
|
|
.form-group textarea:focus,
|
|
.form-group select:focus {
|
|
outline: none;
|
|
border-color: var(--primary-color);
|
|
box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
|
|
}
|
|
|
|
.form-group textarea {
|
|
resize: vertical;
|
|
min-height: 80px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.form-row {
|
|
display: flex;
|
|
gap: 15px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.form-row .form-group {
|
|
flex: 1;
|
|
min-width: 180px;
|
|
}
|
|
|
|
.button-wrapper {
|
|
text-align: center;
|
|
}
|
|
|
|
/* ===== BUTTONS ===== */
|
|
.btn-primary {
|
|
padding: 10px 20px;
|
|
border: none;
|
|
border-radius: var(--border-radius);
|
|
cursor: pointer;
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
transition: background-color var(--transition-speed), transform var(--transition-speed);
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
user-select: none;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
.btn-primary:hover,
|
|
.btn-primary:focus {
|
|
background-color: var(--primary-hover-color);
|
|
transform: translateY(-1px);
|
|
outline: none;
|
|
}
|
|
|
|
.btn-primary:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
/* ===== CARDS & SECTIONS ===== */
|
|
.ticket-form,
|
|
.tickets-section {
|
|
background: var(--card-bg-color);
|
|
padding: var(--card-padding);
|
|
border-radius: var(--border-radius);
|
|
box-shadow: 0 4px 15px var(--shadow-color);
|
|
margin-bottom: 30px;
|
|
max-width: 100%;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* Improved ticket-form styles for clearer layout */
|
|
.ticket-form h2 {
|
|
margin-bottom: 20px;
|
|
color: var(--neutral-dark);
|
|
font-weight: 700;
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
/* ===== SECTION HEADER ===== */
|
|
.section-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 25px;
|
|
flex-wrap: wrap;
|
|
gap: 15px;
|
|
}
|
|
|
|
.section-header h2 {
|
|
margin: 0;
|
|
color: var(--neutral-dark);
|
|
font-weight: 700;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.section-header h2 i {
|
|
color: var(--primary-color);
|
|
font-size: 1.4rem;
|
|
}
|
|
|
|
/* ===== FILTERS ===== */
|
|
.filters-row {
|
|
display: flex;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
}
|
|
|
|
.filters-row input,
|
|
.filters-row select {
|
|
padding: 6px 10px;
|
|
border-radius: 5px;
|
|
border: 1px solid var(--border-color);
|
|
background-color: var(--bg-color);
|
|
color: var(--text-color);
|
|
font-family: var(--font-family);
|
|
font-size: 0.95rem;
|
|
min-width: 120px;
|
|
transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
|
|
}
|
|
|
|
.filters-row input:focus,
|
|
.filters-row select:focus {
|
|
border-color: var(--primary-color);
|
|
box-shadow: 0 0 5px rgba(74, 144, 226, 0.3);
|
|
outline: none;
|
|
}
|
|
|
|
/* ===== TICKETS GRID ===== */
|
|
.tickets-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
|
gap: 25px;
|
|
}
|
|
|
|
/* ===== TICKET CARDS ===== */
|
|
.ticket {
|
|
background: var(--card-bg-color);
|
|
padding: var(--card-padding);
|
|
border-radius: var(--border-radius);
|
|
box-shadow: 0 2px 8px var(--shadow-color);
|
|
display: flex;
|
|
flex-direction: column;
|
|
transition: transform var(--transition-speed), box-shadow var(--transition-speed);
|
|
min-height: 250px;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.ticket:hover,
|
|
.ticket:focus-within {
|
|
transform: translateY(-3px);
|
|
box-shadow: 0 6px 12px var(--shadow-color);
|
|
outline: none;
|
|
}
|
|
|
|
.ticket h3 {
|
|
margin-top: 0;
|
|
margin-bottom: 16px;
|
|
color: var(--neutral-dark);
|
|
font-size: 1.2rem;
|
|
font-weight: 600;
|
|
line-height: 1.3;
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
position: relative;
|
|
padding-right: 80px;
|
|
padding-top: 8px;
|
|
user-select: text;
|
|
}
|
|
|
|
.ticket .ticket-id {
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
font-size: 0.8rem;
|
|
font-weight: 700;
|
|
padding: 6px 10px;
|
|
border-radius: 12px;
|
|
position: absolute;
|
|
top: 5px;
|
|
right: 0;
|
|
letter-spacing: 0.5px;
|
|
user-select: none;
|
|
}
|
|
|
|
.ticket .description {
|
|
color: var(--neutral-medium);
|
|
font-size: 0.95rem;
|
|
line-height: 1.4;
|
|
margin-bottom: 18px;
|
|
overflow: hidden;
|
|
word-wrap: break-word;
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 1;
|
|
text-overflow: ellipsis;
|
|
height: 22px;
|
|
user-select: text;
|
|
}
|
|
|
|
.ticket .meta {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 0.85rem;
|
|
color: var(--neutral-light);
|
|
margin-bottom: 15px;
|
|
flex-shrink: 0;
|
|
user-select: none;
|
|
}
|
|
|
|
.ticket .meta i {
|
|
margin-right: 5px;
|
|
}
|
|
|
|
/* Status row and actions */
|
|
.status-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 15px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.ticket-actions {
|
|
margin-top: auto;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.action-btn {
|
|
display: block;
|
|
text-align: center;
|
|
padding: 10px 15px;
|
|
border-radius: var(--border-radius);
|
|
text-decoration: none;
|
|
font-size: 0.95rem;
|
|
font-weight: 500;
|
|
transition: all var(--transition-speed);
|
|
user-select: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.action-btn.view-btn {
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
}
|
|
|
|
.action-btn.view-btn:hover,
|
|
.action-btn.view-btn:focus {
|
|
background-color: var(--primary-hover-color);
|
|
transform: translateY(-1px);
|
|
outline: none;
|
|
}
|
|
|
|
.action-btn.view-btn:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.total-time {
|
|
font-size: 0.8em;
|
|
color: #555;
|
|
margin-left: 8px;
|
|
user-select: none;
|
|
}
|
|
|
|
/* ===== BADGES ===== */
|
|
.status,
|
|
.priority {
|
|
display: inline-block;
|
|
padding: 5px 12px;
|
|
border-radius: 20px;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
text-transform: capitalize;
|
|
line-height: 1.4;
|
|
white-space: nowrap;
|
|
user-select: none;
|
|
}
|
|
|
|
.status i,
|
|
.priority i {
|
|
margin-right: 5px;
|
|
}
|
|
|
|
/* Status colors */
|
|
.status-Open {
|
|
background-color: rgba(74, 144, 226, 0.15);
|
|
color: #4A90E2;
|
|
}
|
|
.status-In-Progress {
|
|
background-color: rgba(245, 166, 35, 0.15);
|
|
color: #F5A623;
|
|
}
|
|
.status-On-Hold {
|
|
background-color: rgba(155, 155, 155, 0.15);
|
|
color: #9B9B9B;
|
|
}
|
|
.status-Closed {
|
|
background-color: rgba(126, 211, 33, 0.15);
|
|
color: #7ED321;
|
|
}
|
|
.status-Cancelled {
|
|
background-color: rgba(208, 2, 27, 0.15);
|
|
color: #D0021B;
|
|
}
|
|
|
|
/* Priority colors */
|
|
.priority-Low {
|
|
background-color: rgba(80, 227, 194, 0.2);
|
|
color: #60b8a5;
|
|
}
|
|
.priority-Medium {
|
|
background-color: rgba(74, 144, 226, 0.2);
|
|
color: #4A90E2;
|
|
}
|
|
.priority-High {
|
|
background-color: rgba(245, 166, 35, 0.2);
|
|
color: #F5A623;
|
|
}
|
|
.priority-Urgent {
|
|
background-color: rgba(208, 2, 27, 0.15);
|
|
color: #D0021B;
|
|
}
|
|
|
|
/* ===== MODAL ===== */
|
|
.modal-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
z-index: 999;
|
|
}
|
|
|
|
.modal {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
display: none; /* hidden by default */
|
|
justify-content: center; /* center horizontally */
|
|
align-items: center; /* center vertically */
|
|
background: rgba(24, 23, 23, 0.6);
|
|
z-index: 9999;
|
|
overflow-y: auto;
|
|
padding: 40px 20px;
|
|
}
|
|
|
|
.modal.show {
|
|
display: flex;
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.modal-content {
|
|
padding: 30px 35px;
|
|
max-width: 800px;
|
|
width: 100%;
|
|
animation: fadeInUp 0.3s ease;
|
|
position: relative;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* Close button */
|
|
.modal-close-btn,
|
|
.modal-close {
|
|
position: absolute;
|
|
top: 30px;
|
|
right: 35px;
|
|
font-size: 1.5rem;
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
color: var(--neutral-light);
|
|
transition: color var(--transition-speed), background-color var(--transition-speed);
|
|
padding: 6px 10px;
|
|
border-radius: var(--border-radius);
|
|
}
|
|
|
|
.modal-close-btn:hover,
|
|
.modal-close-btn:focus,
|
|
.modal-close:hover,
|
|
.modal-close:focus {
|
|
color: var(--primary-color);
|
|
background-color: rgba(74, 144, 226, 0.1);
|
|
outline: none;
|
|
}
|
|
|
|
.modal-header {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.modal-header h2 {
|
|
margin: 0;
|
|
font-weight: 700;
|
|
color: var(--primary-color);
|
|
font-size: 1.6rem;
|
|
}
|
|
|
|
/* Animations */
|
|
@keyframes fadeInUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(15px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* ===== User PFP ===== */
|
|
|
|
.avatar {
|
|
width: 50px;
|
|
height: 50px;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.btn-update-pfp {
|
|
background-color: #10b981; /* emerald green */
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 8px;
|
|
padding: 6px 12px;
|
|
align-items: center;
|
|
gap: 6px;
|
|
cursor: pointer;
|
|
transition: background 0.2s ease;
|
|
}
|
|
|
|
.btn-update-pfp:hover {
|
|
background-color: #059669; /* darker emerald */
|
|
}
|
|
|
|
/* Smaller modal size */
|
|
.small-modal {
|
|
max-width: 350px;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Drag & drop zone */
|
|
#drop-zone {
|
|
border: 2px dashed #4b5563; /* gray tone */
|
|
background-color: #1f2937; /* dark mode box */
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
cursor: pointer;
|
|
color: #9ca3af;
|
|
transition: border-color 0.2s ease, background 0.2s ease;
|
|
}
|
|
|
|
#drop-zone:hover {
|
|
border-color: #10b981; /* emerald green accent */
|
|
background-color: #111827;
|
|
}
|
|
|
|
/* ===== RESPONSIVE ===== */
|
|
@media (max-width: 991px) {
|
|
.header {
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
}
|
|
.header h1 {
|
|
font-size: 1.4rem;
|
|
justify-content: center;
|
|
}
|
|
.user-actions {
|
|
justify-content: center;
|
|
}
|
|
.tickets-grid {
|
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
|
}
|
|
.ticket {
|
|
min-height: 230px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 575px) {
|
|
.container {
|
|
padding: 15px 20px;
|
|
}
|
|
.ticket-form,
|
|
.tickets-section {
|
|
padding-left: 20px;
|
|
padding-right: 20px;
|
|
}
|
|
.tickets-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.ticket h3 {
|
|
padding-right: 50px;
|
|
}
|
|
.header h1 {
|
|
font-size: 1.2rem;
|
|
}
|
|
} |