Files
hotel777-manager/public/style.css
2026-05-04 21:09:42 +05:00

1045 lines
19 KiB
CSS

:root {
--primary: #6366f1;
--primary-hover: #4f46e5;
--primary-light: rgba(99, 102, 241, 0.08);
--secondary: #0ea5e9;
--success: #10b981;
--success-light: rgba(16, 185, 129, 0.1);
--warning: #f59e0b;
--warning-light: rgba(245, 158, 11, 0.1);
--danger: #ef4444;
--danger-light: rgba(239, 68, 68, 0.08);
--info: #3b82f6;
--info-light: rgba(59, 130, 246, 0.1);
--bg-primary: #f8fafc;
--bg-secondary: #ffffff;
--bg-card: #ffffff;
--bg-subtle: #f1f5f9;
--bg-elevated: #ffffff;
--text-primary: #0f172a;
--text-secondary: #475569;
--text-muted: #94a3b8;
--text-inverse: #ffffff;
--border: #e2e8f0;
--border-light: #f1f5f9;
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
--shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);
--radius-sm: 8px;
--radius-md: 12px;
--radius-lg: 16px;
--radius-xl: 20px;
--transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
--transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
--transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
font-size: 16px;
scroll-behavior: smooth;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
min-height: 100vh;
line-height: 1.6;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
header {
background: rgba(255, 255, 255, 0.8);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border-bottom: 1px solid var(--border);
padding: 0.875rem 2rem;
position: sticky;
top: 0;
z-index: 100;
animation: slideDown 0.5s ease-out;
}
@keyframes slideDown {
from { transform: translateY(-100%); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
nav {
display: flex;
gap: 0.5rem;
align-items: center;
}
nav a {
text-decoration: none;
color: var(--text-secondary);
font-weight: 500;
padding: 0.5rem 1rem;
border-radius: var(--radius-sm);
transition: all var(--transition-base);
font-size: 0.9375rem;
white-space: nowrap;
}
nav a:hover {
color: var(--text-primary);
background: var(--bg-subtle);
}
nav a.active {
color: var(--primary);
background: var(--primary-light);
font-weight: 600;
}
main {
max-width: 100%;
margin: 0 auto;
padding: 1.5rem 2rem;
animation: fadeIn 0.6s ease-out;
width: 100%;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(12px); }
to { opacity: 1; transform: translateY(0); }
}
h1 {
color: var(--text-primary);
font-size: clamp(1.5rem, 3vw, 2.25rem);
font-weight: 700;
margin-bottom: 1.5rem;
letter-spacing: -0.025em;
}
h2 {
color: var(--text-primary);
font-size: clamp(1.125rem, 2vw, 1.5rem);
font-weight: 600;
margin: 2rem 0 1rem;
letter-spacing: -0.015em;
}
h3 {
color: var(--text-secondary);
font-size: clamp(1rem, 1.5vw, 1.125rem);
font-weight: 600;
margin: 1.5rem 0 1rem;
}
.card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 1.5rem;
box-shadow: var(--shadow-sm);
transition: all var(--transition-base);
}
.card:hover {
box-shadow: var(--shadow-md);
}
.table-container {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
overflow: hidden;
box-shadow: var(--shadow-sm);
}
table {
width: 100%;
border-collapse: collapse;
}
th {
background: var(--bg-subtle);
color: var(--text-secondary);
font-weight: 600;
padding: 0.875rem 1rem;
text-align: left;
border-bottom: 1px solid var(--border);
text-transform: uppercase;
font-size: 0.6875rem;
letter-spacing: 0.05em;
white-space: nowrap;
}
td {
padding: 1rem;
border-bottom: 1px solid var(--border-light);
color: var(--text-secondary);
vertical-align: middle;
}
tr {
transition: background var(--transition-fast);
}
tr:hover {
background: var(--bg-subtle);
}
tr:last-child td {
border-bottom: none;
}
tr {
animation: rowSlideIn 0.3s ease-out backwards;
}
tr:nth-child(1) { animation-delay: 0.03s; }
tr:nth-child(2) { animation-delay: 0.06s; }
tr:nth-child(3) { animation-delay: 0.09s; }
tr:nth-child(4) { animation-delay: 0.12s; }
tr:nth-child(5) { animation-delay: 0.15s; }
tr:nth-child(6) { animation-delay: 0.18s; }
tr:nth-child(7) { animation-delay: 0.21s; }
tr:nth-child(8) { animation-delay: 0.24s; }
tr:nth-child(9) { animation-delay: 0.27s; }
tr:nth-child(10) { animation-delay: 0.3s; }
@keyframes rowSlideIn {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
}
button, .btn {
padding: 0.625rem 1.25rem;
background: var(--primary);
color: var(--text-inverse);
border: none;
border-radius: var(--radius-sm);
cursor: pointer;
font-weight: 500;
font-size: 0.875rem;
transition: all var(--transition-base);
box-shadow: var(--shadow-sm);
position: relative;
overflow: hidden;
white-space: nowrap;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
}
button:hover, .btn:hover {
background: var(--primary-hover);
transform: translateY(-1px);
box-shadow: var(--shadow-md);
}
button:active, .btn:active {
transform: translateY(0);
}
button:disabled {
opacity: 0.5;
cursor: not-allowed;
transform: none;
}
.btn-secondary {
background: var(--bg-secondary);
color: var(--text-primary);
border: 1px solid var(--border);
box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
background: var(--bg-subtle);
border-color: var(--text-muted);
box-shadow: var(--shadow-md);
}
.btn-success {
background: var(--success);
}
.btn-success:hover {
background: #059669;
}
.btn-danger {
background: var(--danger);
}
.btn-danger:hover {
background: #dc2626;
}
.btn-sm {
padding: 0.375rem 0.75rem;
font-size: 0.8125rem;
}
.status-badge {
display: inline-flex;
align-items: center;
gap: 0.375rem;
padding: 0.25rem 0.75rem;
border-radius: 9999px;
font-size: 0.75rem;
font-weight: 600;
white-space: nowrap;
}
.status-badge::before {
content: '';
width: 6px;
height: 6px;
border-radius: 50%;
}
.status-new {
background: var(--info-light);
color: var(--info);
}
.status-new::before { background: var(--info); }
.status-in-progress {
background: var(--warning-light);
color: #b45309;
}
.status-in-progress::before { background: var(--warning); }
.status-confirmed {
background: var(--success-light);
color: #047857;
}
.status-confirmed::before { background: var(--success); }
.status-checkin {
background: rgba(139, 92, 246, 0.1);
color: #7c3aed;
}
.status-checkin::before { background: #8b5cf6; }
.status-completed {
background: var(--bg-subtle);
color: var(--text-muted);
}
.status-completed::before { background: var(--text-muted); }
.status-cancelled {
background: var(--danger-light);
color: var(--danger);
}
.status-cancelled::before { background: var(--danger); }
form {
display: flex;
flex-direction: column;
gap: 1rem;
}
.form-group {
display: flex;
flex-direction: column;
gap: 0.375rem;
}
input, select, textarea {
padding: 0.625rem 0.875rem;
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
color: var(--text-primary);
font-size: 0.9375rem;
transition: all var(--transition-base);
font-family: inherit;
width: 100%;
}
input:focus, select:focus, textarea:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px var(--primary-light);
}
input::placeholder, textarea::placeholder {
color: var(--text-muted);
}
label {
font-weight: 500;
color: var(--text-secondary);
font-size: 0.875rem;
}
.modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(15, 23, 42, 0.4);
backdrop-filter: blur(4px);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
opacity: 0;
visibility: hidden;
transition: all var(--transition-base);
padding: 1rem;
}
.modal.active {
opacity: 1;
visibility: visible;
}
.modal-content {
background: var(--bg-elevated);
padding: 2rem;
border-radius: var(--radius-xl);
width: 100%;
max-width: 560px;
max-height: 85vh;
overflow-y: auto;
border: 1px solid var(--border);
box-shadow: var(--shadow-xl);
transform: scale(0.95) translateY(10px);
transition: all var(--transition-slow);
}
.modal.active .modal-content {
transform: scale(1) translateY(0);
}
.toast-container {
position: fixed;
top: 5rem;
right: 1.5rem;
z-index: 2000;
display: flex;
flex-direction: column;
gap: 0.5rem;
pointer-events: none;
}
.toast {
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 0.875rem 1.25rem;
box-shadow: var(--shadow-lg);
display: flex;
align-items: center;
gap: 0.75rem;
min-width: 280px;
max-width: 400px;
animation: toastSlideIn 0.3s ease-out;
pointer-events: auto;
font-size: 0.875rem;
}
.toast.toast-exit {
animation: toastSlideOut 0.25s ease-in forwards;
}
@keyframes toastSlideIn {
from { transform: translateX(100%); opacity: 0; }
to { transform: translateX(0); opacity: 1; }
}
@keyframes toastSlideOut {
from { transform: translateX(0); opacity: 1; }
to { transform: translateX(100%); opacity: 0; }
}
.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-warning { border-left: 3px solid var(--warning); }
.toast-info { border-left: 3px solid var(--info); }
.loading-spinner {
display: inline-block;
width: 18px;
height: 18px;
border: 2px solid var(--border);
border-top-color: var(--primary);
border-radius: 50%;
animation: spin 0.7s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.filter-bar {
display: flex;
gap: 0.75rem;
flex-wrap: wrap;
margin-bottom: 1.5rem;
padding: 1rem;
background: var(--bg-card);
border-radius: var(--radius-lg);
border: 1px solid var(--border);
box-shadow: var(--shadow-sm);
}
.filter-bar input, .filter-bar select {
flex: 1;
min-width: 180px;
}
.search-input-wrapper {
position: relative;
flex: 2;
min-width: 240px;
}
.search-input-wrapper::before {
content: '';
position: absolute;
left: 0.875rem;
top: 50%;
transform: translateY(-50%);
width: 18px;
height: 18px;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
background-size: contain;
background-repeat: no-repeat;
}
.search-input-wrapper input {
padding-left: 2.5rem;
}
.action-buttons {
display: flex;
gap: 0.375rem;
flex-wrap: nowrap;
}
.empty-state {
text-align: center;
padding: 4rem 2rem;
color: var(--text-muted);
}
.empty-state-icon {
font-size: 3rem;
margin-bottom: 1rem;
opacity: 0.4;
}
.empty-state h3 {
color: var(--text-secondary);
margin: 0 0 0.5rem;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 1rem;
margin-bottom: 2rem;
}
.stat-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 1.25rem;
text-align: center;
transition: all var(--transition-base);
box-shadow: var(--shadow-sm);
}
.stat-card:hover {
box-shadow: var(--shadow-md);
transform: translateY(-2px);
}
.stat-value {
font-size: clamp(1.5rem, 3vw, 2rem);
font-weight: 700;
color: var(--primary);
line-height: 1.2;
}
.stat-label {
color: var(--text-muted);
font-size: 0.8125rem;
margin-top: 0.25rem;
font-weight: 500;
}
.form-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 1.5rem;
box-shadow: var(--shadow-sm);
max-width: 480px;
}
hr {
margin: 2rem 0;
border: none;
border-top: 1px solid var(--border);
}
/* ========================================
BOOKING CARDS (mobile/tablet view)
======================================== */
.booking-cards {
display: none;
}
.booking-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 1.25rem;
margin-bottom: 0.75rem;
box-shadow: var(--shadow-sm);
transition: all var(--transition-base);
animation: cardSlideIn 0.3s ease-out backwards;
}
.booking-card:hover {
box-shadow: var(--shadow-md);
}
.booking-card-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 0.75rem;
}
.booking-card-name {
font-weight: 600;
font-size: 1rem;
color: var(--text-primary);
}
.booking-card-id {
font-size: 0.75rem;
color: var(--text-muted);
font-weight: 500;
}
.booking-card-body {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.75rem;
margin-bottom: 1rem;
}
.booking-card-field {
display: flex;
flex-direction: column;
gap: 0.125rem;
}
.booking-card-label {
font-size: 0.6875rem;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.05em;
font-weight: 600;
}
.booking-card-value {
font-size: 0.875rem;
color: var(--text-primary);
font-weight: 500;
}
.booking-card-footer {
display: flex;
justify-content: flex-end;
padding-top: 0.75rem;
border-top: 1px solid var(--border-light);
}
@keyframes cardSlideIn {
from { opacity: 0; transform: translateY(12px); }
to { opacity: 1; transform: translateY(0); }
}
/* ========================================
RESPONSIVE — TABLET (≤1024px)
======================================== */
@media (max-width: 1024px) {
header {
padding: 0.75rem 1.5rem;
}
main {
padding: 1.25rem 1.5rem;
}
.stats-grid {
grid-template-columns: repeat(2, 1fr);
}
.filter-bar {
padding: 0.875rem;
}
}
/* ========================================
RESPONSIVE — PHONE (≤768px)
======================================== */
@media (max-width: 768px) {
html {
font-size: 15px;
}
header {
padding: 0.625rem 1rem;
}
nav {
gap: 0.25rem;
}
nav a {
padding: 0.4rem 0.625rem;
font-size: 0.8125rem;
}
main {
padding: 1rem;
}
h1 {
margin-bottom: 1rem;
}
.stats-grid {
grid-template-columns: repeat(2, 1fr);
gap: 0.75rem;
}
.stat-card {
padding: 1rem;
}
.stat-value {
font-size: 1.5rem;
}
.filter-bar {
flex-direction: column;
gap: 0.5rem;
padding: 0.875rem;
}
.filter-bar input,
.filter-bar select {
min-width: 100%;
width: 100%;
}
.search-input-wrapper {
min-width: 100%;
}
/* Hide tables, show cards */
.table-container {
display: none !important;
}
.booking-cards {
display: block;
}
.toast-container {
top: 4.5rem;
right: 0.75rem;
left: 0.75rem;
}
.toast {
min-width: auto;
max-width: none;
width: 100%;
}
.modal-content {
padding: 1.5rem;
max-width: 100%;
margin: 0.5rem;
}
.action-buttons {
flex-direction: row;
}
.action-buttons button {
flex: 1;
}
.form-card {
max-width: 100%;
}
form {
max-width: 100%;
}
}
/* ========================================
RESPONSIVE — SMALL PHONE (≤480px)
======================================== */
@media (max-width: 480px) {
html {
font-size: 14px;
}
header {
padding: 0.5rem 0.75rem;
}
nav {
gap: 0.125rem;
}
nav a {
padding: 0.375rem 0.5rem;
font-size: 0.75rem;
}
main {
padding: 0.75rem;
}
.stats-grid {
grid-template-columns: repeat(2, 1fr);
gap: 0.5rem;
}
.stat-card {
padding: 0.875rem 0.5rem;
}
.stat-label {
font-size: 0.6875rem;
}
.booking-card {
padding: 1rem;
}
.booking-card-body {
grid-template-columns: 1fr;
gap: 0.5rem;
}
.card {
padding: 1rem;
}
.modal-content {
padding: 1.25rem;
}
}
/* ========================================
RESPONSIVE — LARGE SCREENS (≥1440px)
======================================== */
@media (min-width: 1440px) {
html {
font-size: 17px;
}
main {
max-width: 1440px;
padding: 2rem 3rem;
}
header {
padding: 1rem 3rem;
}
.stats-grid {
grid-template-columns: repeat(4, 1fr);
gap: 1.25rem;
}
.stat-card {
padding: 1.5rem;
}
.filter-bar {
padding: 1.25rem;
}
}
/* ========================================
RESPONSIVE — XL / TV (≥1920px)
======================================== */
@media (min-width: 1920px) {
html {
font-size: 18px;
}
main {
max-width: 1680px;
padding: 2.5rem 4rem;
}
header {
padding: 1.25rem 4rem;
}
nav a {
font-size: 1rem;
padding: 0.625rem 1.25rem;
}
.stats-grid {
grid-template-columns: repeat(4, 1fr);
gap: 1.5rem;
}
.stat-card {
padding: 2rem;
}
.stat-value {
font-size: 2.5rem;
}
.stat-label {
font-size: 0.9375rem;
}
.table-container {
border-radius: var(--radius-xl);
}
th {
padding: 1rem 1.25rem;
font-size: 0.75rem;
}
td {
padding: 1.125rem 1.25rem;
}
.filter-bar {
padding: 1.5rem;
gap: 1rem;
border-radius: var(--radius-xl);
}
.filter-bar input,
.filter-bar select {
padding: 0.875rem 1rem;
font-size: 1rem;
}
button, .btn {
padding: 0.875rem 1.75rem;
font-size: 1rem;
}
.card {
padding: 2rem;
border-radius: var(--radius-xl);
}
.form-card {
max-width: 560px;
padding: 2rem;
}
.modal-content {
max-width: 640px;
padding: 2.5rem;
}
.booking-card {
padding: 1.5rem;
margin-bottom: 1rem;
}
}
/* ========================================
RESPONSIVE — 4K / HUGE TV (≥2560px)
======================================== */
@media (min-width: 2560px) {
html {
font-size: 20px;
}
main {
max-width: 2000px;
padding: 3rem 5rem;
}
header {
padding: 1.5rem 5rem;
}
.stats-grid {
gap: 2rem;
}
.stat-card {
padding: 2.5rem;
}
.stat-value {
font-size: 3rem;
}
.stat-label {
font-size: 1.125rem;
}
nav a {
font-size: 1.125rem;
padding: 0.75rem 1.5rem;
}
}
/* ========================================
PRINT STYLES
======================================== */
@media print {
header, .filter-bar, .action-buttons, .toast-container, button, .btn {
display: none !important;
}
body {
background: white;
color: black;
}
.card, .table-container {
box-shadow: none;
border: 1px solid #ccc;
}
main {
padding: 0;
max-width: 100%;
}
}