594 lines
9.1 KiB
CSS
594 lines
9.1 KiB
CSS
/* Service Tile Layout */
|
|
.service-tile-layout {
|
|
display: flex;
|
|
min-height: 100vh;
|
|
background: #f8f9fa;
|
|
}
|
|
|
|
.sidebar {
|
|
position: fixed;
|
|
left: 0;
|
|
top: 0;
|
|
height: 100vh;
|
|
width: 260px;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.service-tile-content {
|
|
margin-left: 260px;
|
|
flex: 1;
|
|
padding: 32px;
|
|
width: calc(100% - 260px);
|
|
max-width: 1200px;
|
|
}
|
|
|
|
/* Header Section */
|
|
.service-tile-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 32px;
|
|
gap: 20px;
|
|
}
|
|
|
|
.header-left {
|
|
flex: 1;
|
|
}
|
|
|
|
.page-title {
|
|
font-size: 28px;
|
|
font-weight: 600;
|
|
color: #1a1a1a;
|
|
margin: 0 0 4px 0;
|
|
letter-spacing: -0.5px;
|
|
}
|
|
|
|
.page-subtitle {
|
|
font-size: 14px;
|
|
color: #6b7280;
|
|
margin: 0;
|
|
}
|
|
|
|
.header-actions {
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: center;
|
|
}
|
|
|
|
/* Search Box */
|
|
.search-box {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.search-box i {
|
|
position: absolute;
|
|
left: 16px;
|
|
color: #6b7280;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.search-input {
|
|
padding: 10px 16px 10px 42px;
|
|
border: 1px solid #d1d5db;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
color: #1a1a1a;
|
|
width: 300px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.search-input:focus {
|
|
outline: none;
|
|
border-color: #3b82f6;
|
|
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn-primary,
|
|
.btn-secondary,
|
|
.btn-refresh {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px 20px;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
border: none;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: #3b82f6;
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover:not(:disabled) {
|
|
background: #2563eb;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.btn-primary:disabled {
|
|
background: #9ca3af;
|
|
cursor: not-allowed;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: white;
|
|
color: #374151;
|
|
border: 1px solid #e5e7eb;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: #f9fafb;
|
|
border-color: #d1d5db;
|
|
}
|
|
|
|
.btn-refresh {
|
|
background: white;
|
|
color: #6b7280;
|
|
border: 1px solid #e5e7eb;
|
|
padding: 10px 16px;
|
|
}
|
|
|
|
.btn-refresh:hover {
|
|
background: #f9fafb;
|
|
color: #3b82f6;
|
|
}
|
|
|
|
/* Service Tiles List */
|
|
.service-tiles-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.service-tile-card {
|
|
background: white;
|
|
border: 1px solid #e5e7eb;
|
|
border-radius: 12px;
|
|
padding: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.service-tile-card:hover {
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.service-tile-card.inactive {
|
|
opacity: 0.6;
|
|
background: #f9fafb;
|
|
}
|
|
|
|
/* Service Tile Content */
|
|
.service-tile-content-area {
|
|
flex: 1;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.service-tile-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.service-tile-header-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
}
|
|
|
|
.service-tile-info h3 {
|
|
margin: 0;
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: #1a1a1a;
|
|
}
|
|
|
|
.service-tile-info .description {
|
|
margin: 0;
|
|
font-size: 14px;
|
|
color: #6b7280;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.order-badge {
|
|
display: inline-block;
|
|
padding: 4px 8px;
|
|
background: #f3f4f6;
|
|
color: #6b7280;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
width: fit-content;
|
|
}
|
|
|
|
/* Status Badge */
|
|
.status-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 12px;
|
|
border-radius: 6px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.status-active {
|
|
background: #d1fae5;
|
|
color: #065f46;
|
|
}
|
|
|
|
.status-inactive {
|
|
background: #fee2e2;
|
|
color: #991b1b;
|
|
}
|
|
|
|
/* Action Buttons */
|
|
.service-tile-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.btn-action {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 6px;
|
|
border: 1px solid #e5e7eb;
|
|
background: white;
|
|
color: #6b7280;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.btn-action:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.btn-toggle:hover {
|
|
background: #fef3c7;
|
|
border-color: #f59e0b;
|
|
color: #f59e0b;
|
|
}
|
|
|
|
.btn-edit:hover {
|
|
background: #eff6ff;
|
|
border-color: #3b82f6;
|
|
color: #3b82f6;
|
|
}
|
|
|
|
.btn-delete:hover {
|
|
background: #fef2f2;
|
|
border-color: #dc2626;
|
|
color: #dc2626;
|
|
}
|
|
|
|
/* Loading State */
|
|
.loading-state {
|
|
background: white;
|
|
border: 1px solid #e5e7eb;
|
|
border-radius: 12px;
|
|
padding: 60px 20px;
|
|
text-align: center;
|
|
margin-top: 40px;
|
|
}
|
|
|
|
.loading-spinner {
|
|
width: 80px;
|
|
height: 80px;
|
|
margin: 0 auto 20px;
|
|
background: #f3f4f6;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.loading-spinner i {
|
|
font-size: 36px;
|
|
color: #3b82f6;
|
|
}
|
|
|
|
.loading-state p {
|
|
font-size: 16px;
|
|
color: #6b7280;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Empty State */
|
|
.empty-state {
|
|
background: white;
|
|
border: 2px dashed #e5e7eb;
|
|
border-radius: 12px;
|
|
padding: 80px 20px;
|
|
text-align: center;
|
|
margin-top: 40px;
|
|
}
|
|
|
|
.empty-icon {
|
|
width: 100px;
|
|
height: 100px;
|
|
margin: 0 auto 24px;
|
|
background: #3b82f6;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
|
|
}
|
|
|
|
.empty-icon i {
|
|
font-size: 48px;
|
|
color: white;
|
|
}
|
|
|
|
.empty-state h3 {
|
|
font-size: 24px;
|
|
font-weight: 600;
|
|
color: #1a1a1a;
|
|
margin: 0 0 12px 0;
|
|
}
|
|
|
|
.empty-state p {
|
|
font-size: 16px;
|
|
color: #6b7280;
|
|
margin: 0 0 24px 0;
|
|
}
|
|
|
|
/* Modal Styles */
|
|
.modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 24px 32px;
|
|
border-bottom: 1px solid #e5e7eb;
|
|
}
|
|
|
|
.modal-header h3 {
|
|
margin: 0;
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: #1a1a1a;
|
|
}
|
|
|
|
.modal-close {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 6px;
|
|
border: none;
|
|
background: #f3f4f6;
|
|
color: #6b7280;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.modal-close:hover {
|
|
background: #e5e7eb;
|
|
color: #1a1a1a;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 24px 32px;
|
|
overflow-y: auto;
|
|
flex: 1;
|
|
}
|
|
|
|
.modal-footer {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 12px;
|
|
padding: 20px 32px;
|
|
border-top: 1px solid #e5e7eb;
|
|
}
|
|
|
|
/* Service Tile Detail */
|
|
.service-tile-detail-card {
|
|
background: #f9fafb;
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
}
|
|
|
|
.detail-item {
|
|
display: flex;
|
|
gap: 12px;
|
|
padding: 12px 0;
|
|
border-bottom: 1px solid #e5e7eb;
|
|
}
|
|
|
|
.detail-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.detail-label {
|
|
font-weight: 600;
|
|
color: #6b7280;
|
|
font-size: 13px;
|
|
min-width: 120px;
|
|
}
|
|
|
|
.detail-value {
|
|
color: #1a1a1a;
|
|
font-size: 14px;
|
|
flex: 1;
|
|
}
|
|
/* Add to existing CSS */
|
|
|
|
.badge-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.category-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 4px 10px;
|
|
background: #e0e7ff;
|
|
color: #4338ca;
|
|
border-radius: 6px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
/* Select dropdown styling */
|
|
select.form-input {
|
|
cursor: pointer;
|
|
appearance: none;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 12px center;
|
|
padding-right: 40px;
|
|
}
|
|
|
|
select.form-input:focus {
|
|
outline: none;
|
|
border-color: #3b82f6;
|
|
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
|
|
}
|
|
|
|
/* Form Styles */
|
|
.form-section {
|
|
margin: 24px 0;
|
|
}
|
|
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.form-group:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.form-group label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #1a1a1a;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.form-group label i {
|
|
color: #6b7280;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.form-input,
|
|
.form-textarea {
|
|
width: 100%;
|
|
padding: 12px 16px;
|
|
border: 1px solid #d1d5db;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
color: #1a1a1a;
|
|
transition: all 0.2s ease;
|
|
background: white;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.form-input:focus,
|
|
.form-textarea:focus {
|
|
outline: none;
|
|
border-color: #3b82f6;
|
|
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
|
|
}
|
|
|
|
.form-textarea {
|
|
resize: vertical;
|
|
min-height: 80px;
|
|
}
|
|
|
|
.form-text {
|
|
display: block;
|
|
margin-top: 6px;
|
|
font-size: 12px;
|
|
color: #6b7280;
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 992px) {
|
|
.service-tile-content {
|
|
margin-left: 0;
|
|
width: 100%;
|
|
padding: 24px;
|
|
}
|
|
|
|
.sidebar {
|
|
transform: translateX(-100%);
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.sidebar.open {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.service-tile-header {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.header-actions {
|
|
width: 100%;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.search-input {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.service-tile-content {
|
|
padding: 20px;
|
|
}
|
|
|
|
.service-tile-card {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.service-tile-actions {
|
|
width: 100%;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.modal-header,
|
|
.modal-body,
|
|
.modal-footer {
|
|
padding: 20px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 576px) {
|
|
.service-tile-content {
|
|
padding: 16px;
|
|
}
|
|
|
|
.header-actions {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.header-actions > * {
|
|
width: 100%;
|
|
}
|
|
} |