Files
ApplianceRepair/Components/Pages/admin/Admin.razor.css
2026-05-01 19:48:34 -05:00

450 lines
8.0 KiB
CSS

.admin-wrapper {
background-color: #f4f7f6;
min-height: 100vh;
padding: 60px 0;
font-family: 'Open Sans', sans-serif;
}
/* Image Viewer Modal */
.image-viewer-modal[open] {
border: none;
border-radius: 12px;
padding: 0;
max-width: 90vw;
width: 1000px;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
background-color: #fff;
overflow: hidden;
}
.image-viewer-modal::backdrop {
background-color: rgba(0, 0, 0, 0.75);
backdrop-filter: blur(4px);
}
.image-viewer-modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 1.5rem;
background-color: #f8f9fa;
border-bottom: 1px solid #e9ecef;
font-weight: 600;
}
.image-viewer-image-stage {
flex-grow: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 400px;
max-height: 70vh;
background-color: #000;
border-radius: 8px;
position: relative;
overflow: hidden;
}
.image-viewer-image-stage img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
display: block;
}
.image-viewer-carousel-container {
display: flex;
align-items: center;
padding: 1.5rem;
gap: 1rem;
background-color: #f1f3f5;
}
.image-viewer-nav-btn {
background-color: #fff;
border: 1px solid #dee2e6;
border-radius: 50%;
width: 45px;
height: 45px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
font-size: 1.2rem;
transition: all 0.2s ease;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
z-index: 10;
}
.image-viewer-nav-btn:hover {
background-color: #007bff;
color: white;
transform: scale(1.1);
}
.image-viewer-nav-btn:active {
transform: scale(0.95);
}
.image-viewer-image-counter {
position: absolute;
bottom: 10px;
background: rgba(0, 0, 0, 0.6);
color: white;
padding: 4px 12px;
border-radius: 20px;
font-size: 0.85rem;
}
.image-viewer-no-images {
width: 100%;
text-align: center;
padding: 3rem;
color: #6c757d;
font-style: italic;
}
/* Image viewer modal */
.admin-header {
text-align: center;
margin-bottom: 40px;
}
.admin-footer {
text-align: center;
}
.tab-container {
display: inline-flex;
background: #e0e6ed;
padding: 5px;
border-radius: 50px;
margin-top: 20px;
}
.tab-btn {
padding: 10px 25px;
border: none;
background: transparent;
font-family: 'Montserrat', sans-serif;
font-weight: 600;
cursor: pointer;
border-radius: 50px;
transition: all 0.3s ease;
color: #666;
}
.tab-btn.active {
background: #2a5298; /* Your Trust Blue */
color: white;
box-shadow: 0 4px 10px rgba(42, 82, 152, 0.2);
}
h1 {
font-family: 'Montserrat', sans-serif;
color: #2a5298;
font-weight: 700;
}
.form-section {
background: #fff;
padding: 100px;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0,0,0,0.05);
margin-bottom: 30px;
border: 1px solid #f0f0f0;
font-family: 'Montserrat', sans-serif;
}
.text-center {
text-align: center;
max-width: 70vw;
margin-left: auto;
margin-right: auto;
}
.form-section h3 {
color: #2a5298;
margin-bottom: 20px;
font-size: 1.2rem;
border-bottom: 2px solid #f4f7f6;
padding-bottom: 10px;
}
.input-group {
margin-bottom: 20px;
}
.input-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
}
label {
display: block;
font-family: 'Montserrat', sans-serif;
font-weight: 600;
font-size: 0.85rem;
text-transform: uppercase;
letter-spacing: 0.5px;
color: #2a5298;
margin-bottom: 8px;
margin-top: 15px;
}
.cards-grid {
display: flex;
flex-direction: row;
align-content: center;
justify-content: center;
column-gap: 2rem;
padding-top: 2rem;
padding-bottom: 2rem;
}
.content-card {
background: #fcfcfc;
border: 1px solid #e0e6ed;
border-radius: 12px;
padding: 20px;
transition: transform 0.2s ease;
display: flex;
flex-direction: column;
align-content: center;
position: relative;
}
.content-card:hover {
border-color: #2a5298;
box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.content-card .input-group {
max-width: 100%;
display: flex;
flex-direction: column;
align-content: center;
}
.content-card ::deep .form-input {
max-width: 80%;
align-self: center;
}
::deep .form-input,
::deep textarea.form-input {
width: 100%;
padding: 14px 18px;
font-size: 1rem;
font-family: 'Open Sans', sans-serif;
color: #444;
background-color: #ffffff;
border: 2px solid #e0e6ed;
border-radius: 12px;
transition: all 0.2s ease-in-out;
display: block;
box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}
::deep .form-input:focus,
::deep textarea.form-input:focus {
outline: none;
border-color: #2a5298;
background-color: #fff;
box-shadow: 0 0 0 4px rgba(42, 82, 152, 0.1);
}
::deep textarea.form-input {
min-height: 120px;
resize: vertical;
line-height: 1.5;
}
.requests-list {
display: flex;
flex-direction: column;
gap: 1.5rem;
padding-top: 1rem;
}
.request-card {
display: grid;
grid-template-columns: 150px 1fr 180px;
align-items: center;
text-align: left;
padding: 20px;
}
.request-id {
font-weight: 700;
color: #2a5298;
font-size: 1.1rem;
}
.request-date {
font-size: 0.85rem;
color: #888;
}
.request-body {
border-left: 1px solid #eee;
border-right: 1px solid #eee;
padding: 0 20px;
}
.info-row {
margin-bottom: 5px;
font-size: 0.9rem;
}
.info-row .label {
display: inline;
text-transform: none;
margin: 0;
color: #666;
font-weight: 600;
}
.info-notes {
margin-top: 10px;
font-size: 0.85rem;
font-style: italic;
color: #444;
}
.phone-link {
color: #2a5298;
text-decoration: none;
font-weight: 600;
transition: color 0.2s;
}
.phone-link:hover {
color: #4CAF50; /* Changes to green on hover to signify 'Call' */
text-decoration: underline;
}
.request-actions {
display: flex;
justify-content: flex-end;
}
.btn-save {
background: #4CAF50;
color: white;
border: none;
padding: 15px 40px;
border-radius: 50px;
font-weight: 700;
cursor: pointer;
box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
transition: all 0.3s ease;
max-width: 10vw;
}
.btn-save:hover {
transform: translateY(-2px);
background: #43a047;
}
.btn-small {
padding: 8px 20px;
border-radius: 20px;
font-size: 0.8rem;
font-weight: 600;
cursor: pointer;
border: 1px solid #2a5298;
background: transparent;
color: #2a5298;
transition: all 0.2s ease;
}
.btn-small:hover {
background: #2a5298;
color: white;
}
.btn-revert {
background: transparent;
color: #666;
border: 2px solid #ccc;
padding: 15px 30px;
border-radius: 50px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
margin-left: 10px;
max-width: 30vw;
}
.btn-revert:hover {
background: #eee;
color: #333;
border-color: #999;
}
.status-msg {
margin-left: 20px;
color: #4CAF50;
font-weight: 600;
animation: fadeIn 0.5s ease;
}
.close-btn {
position: absolute;
top: 5px;
right: 5px;
background: none;
border: none;
font-size: 20px;
cursor: pointer;
line-height: 1;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@media (max-width: 768px) {
.input-row {
grid-template-columns: 1fr;
}
.btn-save {
max-width: 40vw;
}
.btn-revert {
max-width: 40vw;
}
.cards-grid {
flex-direction: column;
align-content: center;
justify-content: center;
row-gap: 2rem;
}
.request-card {
grid-template-columns: 1fr;
gap: 15px;
}
.request-body {
border: none;
padding: 10px 0;
border-top: 1px solid #eee;
border-bottom: 1px solid #eee;
}
}