Files
mayagen/src/Dashboard.module.css
Vassshhh c3cc8572ce ok
2025-07-03 14:33:41 +07:00

307 lines
4.9 KiB
CSS

.h1 {
color: white;
}
.uploadContainer {
overflow: hidden;
margin-top: 16px;
border: 2px dashed #ccc;
border-radius: 12px;
text-align: center;
cursor: pointer;
transition: border-color 0.3s;
padding-bottom: 30px;
}
.uploadContainer:hover {
border-color: #888;
}
.uploadLink {
color: #007bff;
text-decoration: underline;
cursor: pointer;
}
.dashboardContainer {
max-width: 900px;
margin: 30px auto;
background: #fff;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
padding: 20px;
}
.dashboardHeader {
display: flex;
align-items: center;
gap: 15px;
background: #075e54;
color: white;
padding: 20px;
border-radius: 10px 10px 0 0;
}
.dashboardHeader img {
width: 75px;
height: 75px;
border-radius: 50%;
}
.statsGrid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
margin-top: 20px;
}
.statsGrid p {
text-transform: uppercase;
}
.statCard {
background: #ece5dd;
border-radius: 10px;
padding: 20px;
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
display: flex;
flex-direction: column;
justify-content: space-around;
}
.statCard h2 {
margin: 0;
font-size: 28px;
color: #075e54;
}
.statCard p {
margin: 5px 0 0;
font-size: 14px;
}
.chartSection {
margin-top: 30px;
}
.chartTitle {
color: #075e54;
}
.footer {
text-align: center;
margin-top: 30px;
font-size: 13px;
color: #777;
}
.desktopText {
display: block;
/* padding: 32px; */
}
.mobileText {
display: none;
}
.dragActive {
background-color: #e0f7fa; /* light blue or whatever color you prefer */
border-color: #00acc1; /* optional: change border on drag too */
}
.fileInfo {
margin-top: 16px;
font-size: 14px;
color: #333;
background: #f1f1f1;
padding: 8px 12px;
border-radius: 8px 0 0 8px;
display: inline-block;
margin-bottom: 10px;
}
.fileInfoClose {
margin-left: 2px;
margin-right: 6px;
margin-top: 16px;
font-size: 14px;
color: #ff0000;
font-weight: 700;
background: #f1f1f1;
padding: 8px 12px;
border-radius: 0 8px 8px 0;
display: inline-block;
}
.fileUpload {
margin-top: 16px;
font-size: 14px;
color: white;
background: #6bc073;
padding: 8px 12px;
border-radius: 8px;
display: inline-block;
margin-bottom: 10px;
}
/* Mobile styles */
@media (max-width: 768px) {
.h1 {
color: white;
font-size: 23px;
}
.dashboardContainer {
max-width: 900px;
margin: 30px auto;
background: #fff;
border-radius: 10px;
box-shadow: none;
padding: 20px;
}
.desktopText {
display: none;
}
.mobileText {
display: block;
}
}
.dashboardHeader {
position: relative;
display: flex;
align-items: center;
gap: 16px;
padding: 20px;
background-color: #075e54;
border-bottom: 1px solid #ddd;
}
.loginButton {
position: absolute;
top: 10px;
right: 10px;
background-color: #0b7366;
color: white;
padding: 8px 18px;
border-radius: 8px;
text-decoration: none;
font-weight: bold;
font-size: 12px;
transition: background-color 0.3s ease;
border: none;
}
.loginButton:hover {
background-color: #0f9b8a;
}
.logoutButton {
position: absolute;
top: 10px;
right: 10px;
background-color: #ad1212;
color: white;
padding: 8px 14px;
border-radius: 8px;
text-decoration: none;
font-weight: bold;
font-size: 12px;
transition: background-color 0.3s ease;
border: none;
}
.logoutButton:hover {
background-color: #cb0f0f;
}
.dropdownContainer {
position: relative;
display: inline-block;
position: absolute;
bottom: 5px;
right: 5px;
}
.dropdownToggle {
background-color: #ffff;
color: #255e54;
padding: 8px 12px;
border: none;
border-radius: 4px;
cursor: pointer;
}
.dropdownMenu {
position: absolute;
right: 0;
top: 100%;
background-color: white;
border: 1px solid #ccc;
min-width: 160px;
box-shadow: 0 8px 16px rgba(0,0,0,0.1);
z-index: 1;
border-radius: 4px;
}
.dropdownItem {
padding: 10px 16px;
text-align: left;
width: 100%;
background: none;
border: none;
cursor: pointer;
}
.dropdownItem:hover {
background-color: #f0f0f0;
}
.fileTable {
width: 100%;
border-collapse: collapse;
margin-bottom: 40px;
}
.fileTable th,
.fileTable td {
border-bottom: 1px solid #ccc;
padding: 10px;
text-align: left;
}
.fileTable th {
background-color: #f2f2f2;
}
.actionBar {
margin-bottom: 12px;
display: flex;
gap: 10px;
}
.actionBar button {
padding: 6px 12px;
background-color: #6bc073;
color: white;
font-weight: bold;
border: none;
border-radius: 6px;
cursor: pointer;
}
.actionBar button:disabled,
.actionBar button[disabled] {
background-color: #cccccc; /* Warna abu-abu untuk tombol nonaktif */
color: #666666; /* Warna teks yang lebih redup */
cursor: not-allowed; /* Cursor tanda larangan */
opacity: 0.7; /* Opsional: efek transparan */
}
.actionBar button:hover {
background-color: #0095cc;
}