PozoAppNov266pm/src/AdminPanel/Styles/FaqSectionForm.scss

455 lines
7.9 KiB
SCSS

// FAQ Form Master Container
.faq-form-master {
padding: 24px;
background: #f8f9fa;
min-height: 100vh;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
// Header Section
.faq-form-header {
display: flex;
justify-content: space-between;
align-items: center;
background: white;
padding: 24px;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
margin-bottom: 24px;
.faq-header-left {
display: flex;
align-items: center;
gap: 16px;
.faq-header-icon {
width: 48px;
height: 48px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
}
.faq-header-content {
h2 {
margin: 0 0 4px 0;
font-size: 24px;
font-weight: 600;
color: #1a1a1a;
}
p {
margin: 0;
color: #6b7280;
font-size: 14px;
}
}
}
.faq-create-btn {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
padding: 12px 24px;
border-radius: 8px;
font-weight: 500;
cursor: pointer;
display: flex;
align-items: center;
gap: 8px;
transition: all 0.2s ease;
&:hover {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
span {
font-size: 18px;
font-weight: 600;
}
}
}
// Tab Navigation
.faq-tab-navigation {
display: flex;
justify-content: space-between;
align-items: center;
background: white;
padding: 16px 24px;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
margin-bottom: 24px;
.faq-tab-buttons {
display: flex;
gap: 8px;
.faq-tab-btn {
padding: 8px 16px;
border: 1px solid #e5e7eb;
background: white;
border-radius: 6px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
color: #6b7280;
transition: all 0.2s ease;
&.faq-active {
background: #667eea;
color: white;
border-color: #667eea;
}
&:hover:not(.faq-active) {
background: #f3f4f6;
}
}
}
.faq-tab-controls {
display: flex;
align-items: center;
gap: 16px;
.faq-sort-dropdown select {
padding: 8px 12px;
border: 1px solid #e5e7eb;
border-radius: 6px;
background: white;
font-size: 14px;
cursor: pointer;
}
.faq-view-toggle {
display: flex;
gap: 4px;
.faq-view-btn {
width: 32px;
height: 32px;
border: 1px solid #e5e7eb;
background: white;
border-radius: 6px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
&.faq-active {
background: #667eea;
color: white;
border-color: #667eea;
}
&:hover:not(.faq-active) {
background: #f3f4f6;
}
}
}
}
}
// Content Display
.faq-display {
.faq-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
gap: 20px;
}
}
// FAQ Cards
.faq-card {
background: white;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
overflow: hidden;
transition: all 0.2s ease;
&:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
&.faq-inactive {
opacity: 0.6;
background: #f9fafb;
}
.faq-card-header {
padding: 20px 20px 0 20px;
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 16px;
h3 {
margin: 0;
font-size: 16px;
font-weight: 600;
color: #1a1a1a;
line-height: 1.4;
flex: 1;
}
.faq-card-actions {
display: flex;
gap: 8px;
flex-shrink: 0;
button {
padding: 6px 12px;
border: none;
border-radius: 6px;
font-size: 12px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
&.faq-edit-btn {
background: #f0f9ff;
color: #0369a1;
&:hover {
background: #e0f2fe;
}
}
&.faq-delete-btn {
background: #fef2f2;
color: #dc2626;
&:hover {
background: #fee2e2;
}
}
&.faq-status-btn {
&.faq-deactivate {
background: #fef3c7;
color: #d97706;
&:hover {
background: #fde68a;
}
}
&.faq-activate {
background: #dcfce7;
color: #16a34a;
&:hover {
background: #bbf7d0;
}
}
}
}
}
}
.faq-card-content {
padding: 16px 20px 20px 20px;
p {
margin: 0 0 12px 0;
font-size: 14px;
line-height: 1.5;
&:last-child {
margin-bottom: 0;
}
strong {
color: #374151;
}
}
.faq-created-date {
color: #6b7280;
font-size: 12px;
}
.faq-status {
font-size: 12px;
font-weight: 500;
&.faq-active {
color: #16a34a;
}
&.faq-inactive {
color: #dc2626;
}
}
}
}
// Placeholder Content
.faq-placeholder-content {
background: white;
border-radius: 12px;
padding: 60px 40px;
text-align: center;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
.faq-placeholder-icon {
font-size: 48px;
margin-bottom: 16px;
}
h2 {
margin: 0 0 8px 0;
font-size: 20px;
font-weight: 600;
color: #1a1a1a;
}
p {
margin: 0;
color: #6b7280;
font-size: 14px;
}
}
// Modal Form Styles
.faq-form {
.faq-form-group {
margin-bottom: 20px;
label {
display: block;
margin-bottom: 6px;
font-weight: 500;
color: #374151;
font-size: 14px;
}
input, textarea {
width: 100%;
padding: 10px 12px;
border: 1px solid #d1d5db;
border-radius: 6px;
font-size: 14px;
transition: all 0.2s ease;
box-sizing: border-box;
&:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
&.error {
border-color: #dc2626;
box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
&::placeholder {
color: #9ca3af;
}
}
textarea {
resize: vertical;
min-height: 80px;
}
.error-message {
display: block;
margin-top: 4px;
font-size: 12px;
color: #dc2626;
}
}
.faq-form-actions {
display: flex;
gap: 12px;
margin-top: 24px;
button {
padding: 10px 20px;
border: none;
border-radius: 6px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
&.faq-save-btn {
background: #667eea;
color: white;
&:hover {
background: #5a67d8;
}
}
&.faq-cancel-btn {
background: #f3f4f6;
color: #374151;
&:hover {
background: #e5e7eb;
}
}
&.faq-clear-btn {
background: #fef2f2;
color: #dc2626;
&:hover {
background: #fee2e2;
}
}
}
}
}
// Responsive Design
@media (max-width: 768px) {
.faq-form-master {
padding: 16px;
}
.faq-form-header {
flex-direction: column;
gap: 16px;
text-align: center;
.faq-header-left {
justify-content: center;
}
}
.faq-tab-navigation {
flex-direction: column;
gap: 16px;
.faq-tab-buttons {
justify-content: center;
}
}
.faq-grid {
grid-template-columns: 1fr;
}
.faq-card-header {
flex-direction: column;
align-items: flex-start;
gap: 12px;
.faq-card-actions {
width: 100%;
justify-content: flex-end;
}
}
}