|
/* Styles for the Quota Management / Admin Dashboard (order.html) */
|
|
|
|
.order-management-layout {
|
|
padding: 0;
|
|
}
|
|
|
|
.quota-overview-card {
|
|
background-color: var(--card-background);
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 12px var(--shadow-color);
|
|
padding: 20px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.quota-overview-card h2 {
|
|
font-size: 1.8rem;
|
|
color: var(--text-color);
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.quota-overview-card .subtitle {
|
|
font-size: 0.95rem;
|
|
color: var(--light-text-color);
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.overview-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
|
|
gap: 30px;
|
|
align-items: start;
|
|
}
|
|
|
|
.total-storage-chart {
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
background-color: var(--background-color);
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
|
|
}
|
|
|
|
.total-storage-chart h3 {
|
|
font-size: 1.1rem;
|
|
color: var(--text-color);
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.donut-chart-container {
|
|
position: relative;
|
|
width: 180px; /* Size of the "donut" */
|
|
height: 180px;
|
|
margin: 0 auto 20px auto;
|
|
border-radius: 50%;
|
|
background: conic-gradient(var(--accent-color) 0% {{ (user.storage_used_gb / user.storage_quota_gb) * 100 }}%, var(--border-color) {{ (user.storage_used_gb / user.storage_quota_gb) * 100 }}% 100%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.donut-chart-container::before {
|
|
content: '';
|
|
position: absolute;
|
|
background: var(--card-background);
|
|
width: 140px; /* Inner circle size */
|
|
height: 140px;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.donut-chart-text {
|
|
position: relative;
|
|
z-index: 1;
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.donut-chart-text .used-gb {
|
|
color: var(--accent-color);
|
|
}
|
|
|
|
.donut-chart-text .total-gb {
|
|
color: var(--light-text-color);
|
|
}
|
|
|
|
|
|
.plan-details {
|
|
font-size: 0.95rem;
|
|
color: var(--light-text-color);
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.order-form-card {
|
|
background-color: var(--background-color);
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
|
|
padding: 20px;
|
|
}
|
|
|
|
.order-form-card h3 {
|
|
font-size: 1.1rem;
|
|
color: var(--text-color);
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.order-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
}
|
|
|
|
.order-form .form-group label {
|
|
font-weight: 600;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.order-form .price-display {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
color: var(--accent-color);
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.order-form .btn-primary {
|
|
width: 100%;
|
|
}
|
|
|
|
.user-quotas-section {
|
|
background-color: var(--card-background);
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 12px var(--shadow-color);
|
|
padding: 20px;
|
|
}
|
|
|
|
.user-quotas-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 30px;
|
|
flex-wrap: wrap;
|
|
gap: 15px;
|
|
}
|
|
|
|
.user-quotas-header h2 {
|
|
font-size: 1.8rem;
|
|
color: var(--text-color);
|
|
margin: 0;
|
|
}
|
|
|
|
.user-quota-list {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 20px;
|
|
}
|
|
|
|
.user-quota-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
|
|
background-color: var(--background-color);
|
|
}
|
|
|
|
.user-quota-item .user-info h4 {
|
|
font-size: 1.1rem;
|
|
color: var(--text-color);
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.user-quota-item .user-info p {
|
|
font-size: 0.9rem;
|
|
color: var(--light-text-color);
|
|
margin: 0;
|
|
}
|
|
|
|
.user-quota-item .quota-details {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.user-quota-item .quota-details p {
|
|
font-size: 0.95rem;
|
|
color: var(--light-text-color);
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.user-quota-item .quota-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
margin-top: 15px;
|
|
}
|
|
|
|
.user-quota-item .quota-actions .btn-outline {
|
|
flex-grow: 1;
|
|
min-width: 100px;
|
|
}
|
|
|
|
/* Small storage gauge for user items */
|
|
.storage-gauge.small {
|
|
height: 10px;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.storage-gauge.large {
|
|
height: 15px;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
/* Modal Styles */
|
|
.modal {
|
|
display: none; /* Hidden by default */
|
|
position: fixed; /* Stay in place */
|
|
z-index: 1000; /* Sit on top */
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%; /* Full width */
|
|
height: 100%; /* Full height */
|
|
overflow: auto; /* Enable scroll if needed */
|
|
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.modal-content {
|
|
background-color: var(--card-background);
|
|
margin: auto;
|
|
padding: 30px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 8px 25px rgba(0,0,0,0.2);
|
|
width: 90%;
|
|
max-width: 500px;
|
|
position: relative;
|
|
animation-name: animatetop;
|
|
animation-duration: 0.4s;
|
|
}
|
|
|
|
@keyframes animatetop {
|
|
from {top: -300px; opacity: 0}
|
|
to {top: 0; opacity: 1}
|
|
}
|
|
|
|
.modal-content h3 {
|
|
color: var(--text-color);
|
|
margin-top: 0;
|
|
margin-bottom: 20px;
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.modal-content .form-group {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.modal-content .form-group label {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
font-weight: 600;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.modal-content .form-group input[type="text"],
|
|
.modal-content .form-group input[type="email"],
|
|
.modal-content .form-group input[type="password"],
|
|
.modal-content .form-group input[type="number"] {
|
|
width: calc(100% - 20px);
|
|
padding: 10px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 5px;
|
|
background-color: var(--input-background);
|
|
color: var(--text-color);
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.modal-content .btn-primary {
|
|
width: 100%;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.modal-content .error {
|
|
color: var(--error-color);
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.close-button {
|
|
color: var(--light-text-color);
|
|
position: absolute;
|
|
top: 15px;
|
|
right: 25px;
|
|
font-size: 30px;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.close-button:hover,
|
|
.close-button:focus {
|
|
color: var(--text-color);
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* User Details Modal Specific Styles */
|
|
#user-details-content p {
|
|
margin-bottom: 10px;
|
|
color: var(--text-color);
|
|
font-size: 1rem;
|
|
}
|
|
|
|
#user-details-content p strong {
|
|
color: var(--accent-color);
|
|
}
|
|
|
|
|
|
/* Responsive adjustments */
|
|
@media (max-width: 992px) {
|
|
.overview-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.user-quotas-header {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
.user-quotas-header .btn-primary {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.quota-overview-card h2 {
|
|
font-size: 1.5rem;
|
|
}
|
|
.quota-overview-card .subtitle {
|
|
font-size: 0.9rem;
|
|
}
|
|
.user-quotas-header h2 {
|
|
font-size: 1.5rem;
|
|
}
|
|
.user-quota-list {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.modal-content {
|
|
width: 95%;
|
|
padding: 20px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.quota-overview-card {
|
|
padding: 15px;
|
|
}
|
|
.quota-overview-card h2 {
|
|
font-size: 1.2rem;
|
|
}
|
|
.donut-chart-container {
|
|
width: 150px;
|
|
height: 150px;
|
|
}
|
|
.donut-chart-container::before {
|
|
width: 110px;
|
|
height: 110px;
|
|
}
|
|
.donut-chart-text {
|
|
font-size: 0.95rem;
|
|
}
|
|
.order-form-card {
|
|
padding: 15px;
|
|
}
|
|
.user-quotas-section {
|
|
padding: 15px;
|
|
}
|
|
.user-quotas-header h2 {
|
|
font-size: 1.1rem;
|
|
}
|
|
.user-quota-item .quota-actions .btn-outline {
|
|
flex-grow: unset;
|
|
width: 100%;
|
|
}
|
|
} |