198 lines
5.5 KiB
CSS
198 lines
5.5 KiB
CSS
@import url('https://fonts.googleapis.css2?family=Sarabun:wght@300;400;500;600;700&display=swap');
|
|
|
|
:root {
|
|
--primary-color: #047857; /* Emerald 700 - Professional green */
|
|
--primary-hover: #059669;
|
|
--bg-color: #f0fdf4; /* Very light green background */
|
|
--card-bg: rgba(255, 255, 255, 0.7);
|
|
--text-color: #1f2937;
|
|
--border-color: rgba(255, 255, 255, 0.5);
|
|
--glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
|
|
}
|
|
|
|
body {
|
|
font-family: 'Sarabun', sans-serif;
|
|
background-color: #f8fafc;
|
|
background-image:
|
|
radial-gradient(at 40% 20%, hsla(160,100%,74%,0.15) 0px, transparent 50%),
|
|
radial-gradient(at 80% 0%, hsla(189,100%,56%,0.15) 0px, transparent 50%),
|
|
radial-gradient(at 0% 50%, hsla(355,100%,93%,0.1) 0px, transparent 50%);
|
|
background-attachment: fixed;
|
|
color: var(--text-color);
|
|
min-height: 100vh;
|
|
margin: 0;
|
|
}
|
|
|
|
.glass-container {
|
|
background: var(--card-bg);
|
|
backdrop-filter: blur(12px);
|
|
-webkit-backdrop-filter: blur(12px);
|
|
border: 1px solid var(--border-color);
|
|
box-shadow: var(--glass-shadow);
|
|
border-radius: 24px;
|
|
padding: 2rem;
|
|
}
|
|
|
|
.magic-card {
|
|
background: rgba(255, 255, 255, 0.5);
|
|
backdrop-filter: blur(8px);
|
|
-webkit-backdrop-filter: blur(8px);
|
|
border: 1px solid rgba(255, 255, 255, 0.8);
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
|
|
border-radius: 20px;
|
|
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
|
overflow: hidden;
|
|
position: relative;
|
|
text-decoration: none;
|
|
display: block;
|
|
height: 100%;
|
|
}
|
|
|
|
.magic-card::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
border-radius: 20px;
|
|
padding: 2px;
|
|
background: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.8), rgba(255,255,255,0) 70%);
|
|
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
|
-webkit-mask-composite: xor;
|
|
mask-composite: exclude;
|
|
opacity: 0;
|
|
transition: opacity 0.5s ease;
|
|
}
|
|
|
|
.magic-card:hover {
|
|
transform: translateY(-6px);
|
|
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
|
background: rgba(255, 255, 255, 0.8);
|
|
}
|
|
|
|
.magic-card:hover::before {
|
|
opacity: 1;
|
|
}
|
|
|
|
.magic-input {
|
|
background: rgba(255, 255, 255, 0.9);
|
|
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
border-radius: 12px;
|
|
padding: 12px 20px;
|
|
width: 100%;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
font-family: 'Sarabun', sans-serif;
|
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
|
|
}
|
|
|
|
.magic-input:hover {
|
|
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
|
|
border-color: rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.magic-input:focus {
|
|
outline: none;
|
|
background: #ffffff;
|
|
box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.15), 0 10px 15px -3px rgba(0, 0, 0, 0.05);
|
|
border-color: var(--primary-color);
|
|
}
|
|
|
|
.magic-btn {
|
|
background: var(--primary-color);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 12px;
|
|
padding: 10px 24px;
|
|
font-family: 'Sarabun', sans-serif;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.magic-btn:hover {
|
|
background: var(--primary-hover);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(4, 120, 87, 0.3);
|
|
}
|
|
|
|
.magic-btn-outline {
|
|
background: transparent;
|
|
color: var(--primary-color);
|
|
border: 2px solid var(--primary-color);
|
|
border-radius: 12px;
|
|
padding: 8px 22px;
|
|
font-family: 'Sarabun', sans-serif;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
.magic-btn-outline:hover {
|
|
background: var(--primary-color);
|
|
color: white;
|
|
}
|
|
|
|
.logo-img {
|
|
height: 90px;
|
|
object-fit: contain;
|
|
filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
|
|
}
|
|
|
|
/* Custom Datatable styling to match magic UI */
|
|
table.dataTable.no-footer {
|
|
border-bottom: 1px solid rgba(0,0,0,0.1) !important;
|
|
}
|
|
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
|
|
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
|
|
background: var(--primary-color) !important;
|
|
color: white !important;
|
|
border: none !important;
|
|
border-radius: 8px !important;
|
|
box-shadow: 0 2px 4px rgba(4, 120, 87, 0.2);
|
|
}
|
|
.dataTables_wrapper .dataTables_paginate .paginate_button {
|
|
border-radius: 8px !important;
|
|
border: 1px solid transparent !important;
|
|
}
|
|
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
|
|
background: rgba(255,255,255,0.5) !important;
|
|
border: 1px solid rgba(0,0,0,0.1) !important;
|
|
color: var(--text-color) !important;
|
|
}
|
|
.dataTables_wrapper .dataTables_length select,
|
|
.dataTables_wrapper .dataTables_filter input {
|
|
border-radius: 8px;
|
|
border: 1px solid rgba(0,0,0,0.2);
|
|
padding: 6px 10px;
|
|
outline: none;
|
|
font-family: 'Sarabun', sans-serif;
|
|
}
|
|
.dataTables_wrapper .dataTables_filter input:focus {
|
|
border-color: var(--primary-color);
|
|
box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.1);
|
|
}
|
|
.dataTables_wrapper .dataTables_length,
|
|
.dataTables_wrapper .dataTables_filter {
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
table.dataTable thead th,
|
|
table.dataTable thead td {
|
|
text-align: center !important;
|
|
}
|
|
table.dataTable tbody td {
|
|
vertical-align: middle;
|
|
}
|
|
|
|
/* Custom Scrollbar */
|
|
.custom-scrollbar::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
.custom-scrollbar::-webkit-scrollbar-track {
|
|
background: rgba(0,0,0,0.02);
|
|
border-radius: 10px;
|
|
}
|
|
.custom-scrollbar::-webkit-scrollbar-thumb {
|
|
background: rgba(4, 120, 87, 0.2);
|
|
border-radius: 10px;
|
|
}
|
|
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
|
|
background: rgba(4, 120, 87, 0.4);
|
|
}
|