1
0
ServicesList/admin/assets/css/edit-services.css
2025-06-17 17:14:57 +02:00

303 lines
7.1 KiB
CSS

/* Custom CSS */
:root {
--primary-color: #6366f1;
--secondary-color: #4f46e5;
--background-color: #f8fafc;
--card-bg: #ffffff;
--text-color: #1e293b;
--shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}
body {
background-color: var(--background-color);
color: var(--text-color);
min-height: 100vh;
padding: 2rem;
}
.container {
max-width: 1200px;
margin: 0 auto;
}
.header {
text-align: center;
margin-bottom: 2rem;
}
.title {
font-size: 2.5rem;
font-weight: 800;
margin-bottom: 0.5rem;
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.card {
background-color: var(--card-bg);
border-radius: 12px;
padding: 1.5rem;
box-shadow: var(--shadow);
margin-bottom: 1.5rem;
}
.form-group {
margin-bottom: 1rem;
}
label {
display: block;
margin-bottom: 0.5rem;
font-weight: 500;
}
input[type="text"],
input[type="password"] {
width: 100%;
padding: 0.75rem;
border: 1px solid #e2e8f0;
border-radius: 0.375rem;
font-size: 1rem;
}
button {
background-color: var(--primary-color);
color: white;
border: none;
border-radius: 0.375rem;
padding: 0.75rem 1.5rem;
font-size: 1rem;
cursor: pointer;
transition: background-color 0.2s;
}
button:hover {
background-color: var(--secondary-color);
}
.btn-danger {
background-color: #ef4444;
}
.btn-danger:hover {
background-color: #dc2626;
}
.btn-secondary {
background-color: #64748b;
}
.btn-secondary:hover {
background-color: #475569;
}
.alert {
padding: 1rem;
border-radius: 0.375rem;
margin-bottom: 1rem;
}
.alert-danger {
background-color: #fee2e2;
color: #b91c1c;
}
.alert-success {
background-color: #dcfce7;
color: #15803d;
}
table {
width: 100%;
border-collapse: collapse;
}
th, td {
padding: 0.75rem;
text-align: left;
border-bottom: 1px solid #e2e8f0;
}
th {
font-weight: 600;
}
.service-icon {
font-size: 1.5rem;
color: var(--primary-color);
}
.actions {
display: flex;
gap: 0.5rem;
}
.back-link {
display: inline-block;
margin-top: 1rem;
color: #64748b;
text-decoration: none;
}
.back-link:hover {
color: var(--primary-color);
}
.drag-handle {
cursor: move;
color: #64748b;
}
/* Icon Selector Styles */
.icon-input-group {
position: relative;
display: flex;
align-items: center;
}
.icon-input {
flex-grow: 1;
padding-right: 40px;
}
.icon-preview {
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
font-size: 1.2rem;
color: var(--primary-color);
}
.icon-select-btn {
margin-left: 10px;
background-color: #e2e8f0;
color: #475569;
padding: 0.5rem 1rem;
}
.icon-select-btn:hover {
background-color: #cbd5e1;
}
.icon-selector-modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 2000;
overflow-y: auto;
}
.icon-selector-content {
position: relative;
background-color: white;
margin: 50px auto;
padding: 20px;
width: 90%;
max-width: 800px;
border-radius: 8px;
max-height: 80vh;
overflow-y: auto;
}
.icon-selector-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
position: sticky;
top: 0;
background-color: white;
padding: 10px 0;
z-index: 10;
}
.icon-selector-close {
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
color: #64748b;
}
.icon-search {
padding: 8px 12px;
border: 1px solid #e2e8f0;
border-radius: 4px;
width: 100%;
max-width: 300px;
margin-bottom: 15px;
}
.icon-categories {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 15px;
}
.icon-category {
background-color: #e2e8f0;
border: none;
border-radius: 4px;
padding: 5px 10px;
cursor: pointer;
font-size: 0.9rem;
}
.icon-category.active {
background-color: var(--primary-color);
color: white;
}
.icon-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
gap: 10px;
}
.icon-item {
display: flex;
flex-direction: column;
align-items: center;
padding: 10px;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.2s;
}
.icon-item:hover {
background-color: #f1f5f9;
}
.icon-item.selected {
background-color: #e0e7ff;
}
.icon-item i {
font-size: 1.5rem;
margin-bottom: 5px;
color: var(--primary-color);
}
.icon-item span {
font-size: 0.7rem;
text-align: center;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 100%;
}