invy/frontend/src/components/GuestList.css
2025-12-29 05:49:05 +02:00

206 lines
2.7 KiB
CSS

.guest-list {
margin-top: 30px;
}
.list-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.list-header h2 {
margin: 0;
color: #1f2937;
font-size: 1.5rem;
}
.list-controls {
display: flex;
gap: 15px;
align-items: center;
}
.list-controls label {
display: flex;
align-items: center;
gap: 8px;
color: #374151;
font-size: 14px;
}
.list-controls select {
padding: 8px 12px;
border: 1px solid #d1d5db;
border-radius: 6px;
font-size: 14px;
background: white;
cursor: pointer;
}
.guest-list h2 {
margin-bottom: 20px;
color: #1f2937;
font-size: 1.5rem;
}
.table-container {
overflow-x: auto;
}
table {
width: 100%;
border-collapse: collapse;
background: white;
}
thead {
background: #f9fafb;
border-bottom: 2px solid #e5e7eb;
}
th {
padding: 12px;
text-align: left;
font-weight: 600;
color: #374151;
font-size: 14px;
}
td {
padding: 12px;
border-bottom: 1px solid #e5e7eb;
color: #4b5563;
}
tbody tr:hover {
background: #f9fafb;
}
.badge {
display: inline-block;
padding: 4px 12px;
border-radius: 12px;
font-size: 12px;
font-weight: 500;
text-transform: capitalize;
}
.badge-success {
background: #d1fae5;
color: #065f46;
}
.badge-danger {
background: #fee2e2;
color: #991b1b;
}
.badge-warning {
background: #fef3c7;
color: #92400e;
}
.actions {
display: flex;
gap: 8px;
}
.btn-small {
padding: 6px 12px;
border: none;
border-radius: 6px;
font-size: 13px;
cursor: pointer;
transition: all 0.2s ease;
}
.btn-edit {
background: #dbeafe;
color: #1e40af;
}
.btn-edit:hover {
background: #bfdbfe;
}
.btn-delete {
background: #fee2e2;
color: #991b1b;
}
.btn-delete:hover {
background: #fecaca;
}
.no-guests {
text-align: center;
padding: 60px 20px;
color: #6b7280;
}
.no-guests p {
font-size: 18px;
}
.owner-cell {
font-size: 12px;
color: #6b7280;
max-width: 200px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.pagination {
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
margin-top: 20px;
padding: 15px;
}
.pagination button {
padding: 8px 16px;
border: 1px solid #d1d5db;
border-radius: 6px;
background: white;
color: #374151;
cursor: pointer;
transition: all 0.2s ease;
}
.pagination button:hover:not(:disabled) {
background: #f3f4f6;
border-color: #9ca3af;
}
.pagination button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.pagination span {
color: #374151;
font-size: 14px;
}
@media (max-width: 768px) {
table {
font-size: 14px;
}
th, td {
padding: 8px;
}
.actions {
flex-direction: column;
}
.btn-small {
width: 100%;
}
}