shoc-frontend-new/src/site.css

400 lines
5.8 KiB
CSS
Raw Normal View History

2026-01-11 17:35:33 -06:00
@import url("https://fonts.googleapis.com/css2?family=Dosis:wght@200;300;400;500;600&family=Nunito:ital,wght@0,200;0,300;0,400;0,600;1,200;1,300;1,400;1,600&display=swap");
* {
margin: 0;
padding: 0;
z-index: 0;
box-sizing: border-box;
}
body {
font-family: "Nunito", sans-serif;
background-color: #f5f5f5;
color: #333;
line-height: 1.5;
}
/* Page Layout */
.listPage, .contactsPage {
padding: 20px;
background: #f5f5f5;
min-height: 100vh;
}
.pageTitle {
font-size: 28px;
font-weight: 600;
color: #333;
margin-bottom: 20px;
}
.card, .controlsCard {
background: white;
border: 1px solid #ddd;
border-radius: 4px;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
margin-bottom: 20px;
}
/* Controls */
.controlsTop {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px;
border-bottom: 1px solid #eee;
}
.leftControls {
flex: 1;
}
.filter {
display: flex;
gap: 10px;
align-items: center;
}
.filter select, .filter input {
padding: 8px 12px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
}
.filter input {
flex: 1;
min-width: 300px;
}
.searchBtn {
padding: 8px 16px;
background: #007bff;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: 600;
}
.searchBtn:hover {
background: #0056b3;
}
.rightControls {
display: flex;
gap: 8px;
}
.iconSmall {
width: 36px;
height: 36px;
padding: 0;
border: 1px solid #ddd;
background: white;
border-radius: 4px;
cursor: pointer;
font-size: 18px;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
}
.iconSmall:hover {
background: #f0f0f0;
border-color: #999;
}
/* Table Styles */
.tableContainer {
padding: 15px;
}
.tableResponsive {
overflow-x: auto;
}
.dataTable {
width: 100%;
border-collapse: collapse;
font-size: 14px;
}
.dataTable thead {
background: #f9f9f9;
}
.dataTable th {
padding: 12px;
text-align: left;
font-weight: 600;
color: #333;
border-bottom: 2px solid #ddd;
}
.dataTable td {
padding: 12px;
border-bottom: 1px solid #eee;
color: #333;
}
.dataTable tbody tr:hover {
background: #f9f9f9;
}
.dataTable a {
color: #007bff;
text-decoration: none;
cursor: pointer;
}
.dataTable a:hover {
text-decoration: underline;
}
.actionButtons {
display: flex;
gap: 8px;
}
.btnIcon {
padding: 4px 8px;
background: white;
border: 1px solid #ddd;
border-radius: 3px;
cursor: pointer;
font-size: 14px;
transition: all 0.2s;
}
.btnIcon:hover {
background: #f0f0f0;
border-color: #999;
}
.btnIcon.edit {
color: #28a745;
}
.btnIcon.delete {
color: #dc3545;
}
/* Pagination */
.paginationContainer {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px;
border-top: 1px solid #eee;
font-size: 13px;
}
.paginationLeft, .paginationRight {
display: flex;
align-items: center;
gap: 15px;
}
.pagination {
display: flex;
gap: 8px;
align-items: center;
}
.pagination button {
padding: 6px 12px;
border: 1px solid #ddd;
background: white;
border-radius: 3px;
cursor: pointer;
font-size: 12px;
}
.pagination button:hover:not(:disabled) {
background: #f0f0f0;
}
.pagination button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* Form Styles */
.formWrapper {
padding: 20px;
background: #f5f5f5;
min-height: 100vh;
}
.formCard {
background: white;
border: 1px solid #ddd;
border-radius: 4px;
max-width: 900px;
margin: 0 auto;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.formHeader {
padding: 20px;
border-bottom: 1px solid #ddd;
background: #f9f9f9;
}
.formHeader h2 {
margin: 0;
font-size: 22px;
color: #333;
}
.dataForm {
padding: 20px;
}
.section {
margin-bottom: 25px;
}
.sectionTitle {
font-size: 16px;
font-weight: 600;
color: #333;
margin-bottom: 15px;
border-bottom: 2px solid #007bff;
padding-bottom: 8px;
}
.formBody {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 15px;
margin-bottom: 15px;
}
.formGroup {
display: flex;
flex-direction: column;
}
.formLabel {
font-size: 14px;
font-weight: 600;
margin-bottom: 6px;
color: #333;
}
.required {
color: #dc3545;
}
.formControl {
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
font-family: inherit;
}
.formControl:focus {
outline: none;
border-color: #007bff;
box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}
.formActions {
display: flex;
gap: 12px;
padding-top: 20px;
border-top: 1px solid #ddd;
}
.btnPrimary {
padding: 10px 24px;
background: #007bff;
color: white;
border: none;
border-radius: 4px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
}
.btnPrimary:hover {
background: #0056b3;
}
.btnPrimary:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.btnSecondary {
padding: 10px 24px;
background: white;
color: #333;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
}
.btnSecondary:hover {
background: #f0f0f0;
}
/* Loading State */
.loading {
padding: 40px;
text-align: center;
color: #666;
font-size: 16px;
}
.error {
padding: 15px;
background: #f8d7da;
border: 1px solid #f5c6cb;
color: #721c24;
border-radius: 4px;
margin: 15px;
}
/* Responsive */
@media (max-width: 768px) {
.controlsTop {
flex-direction: column;
align-items: stretch;
gap: 12px;
}
.filter {
flex-direction: column;
}
.filter input, .filter select {
width: 100%;
}
.dataTable {
font-size: 12px;
}
.dataTable th, .dataTable td {
padding: 8px;
}
.paginationContainer {
flex-direction: column;
gap: 12px;
}
.formBody {
grid-template-columns: 1fr;
}
}