PozoAppSiteOptim/src/AdminPanel/AdminPanel.scss.backup

976 lines
26 KiB
Plaintext

// Modern Admin Panel with Trending UI/UX
.admin-panel {
display: flex;
height: 100vh;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
color: #1a202c;
letter-spacing: -0.01em;
// Sidebar Styles - Modern Dark Theme
.sidebar {
width: 290px;
background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
color: white;
display: flex;
flex-direction: column;
box-shadow: 8px 0 40px rgba(0, 0, 0, 0.15);
position: relative;
&::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, #5255c8, #8b5cf6, #ec4899);
}
.sidebar-header {
padding: 2.5rem 1.75rem 1.5rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
.logo {
display: flex;
align-items: center;
gap: 0.875rem;
svg {
font-size: 2rem;
color: #818cf8;
filter: drop-shadow(0 0 8px rgba(129, 140, 248, 0.4));
}
h1 {
margin: 0;
font-size: 1.5rem;
font-weight: 700;
background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
letter-spacing: -0.02em;
}
}
}
.sidebar-nav {
flex: 1;
padding: 1rem 0;
overflow-y: auto;
.nav-item {
display: flex;
align-items: center;
padding: 1rem 1.5rem;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
margin: 0.25rem 0;
&:hover {
background: rgba(255, 255, 255, 0.05);
}
&.active {
background: linear-gradient(135deg, #5255c8, #8b5cf6);
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
.nav-icon {
color: white;
}
.nav-content {
.nav-title {
color: white;
}
.nav-subtitle {
color: rgba(255, 255, 255, 0.8);
}
}
}
.nav-icon {
font-size: 1.25rem;
color: #94a3b8;
margin-right: 1rem;
transition: color 0.3s ease;
}
.nav-content {
flex: 1;
.nav-title {
display: block;
font-size: 0.95rem;
font-weight: 600;
color: #e2e8f0;
margin-bottom: 0.25rem;
}
.nav-subtitle {
display: block;
font-size: 0.8rem;
color: #94a3b8;
}
}
.active-indicator {
width: 4px;
height: 20px;
background: white;
border-radius: 2px;
position: absolute;
right: 0;
}
}
}
.sidebar-footer {
padding: 1.5rem;
border-top: 1px solid rgba(255, 255, 255, 0.1);
.user-profile {
display: flex;
align-items: center;
margin-bottom: 1rem;
.user-avatar {
width: 40px;
height: 40px;
background: linear-gradient(135deg, #8b5cf6, #ec4899);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
font-size: 0.9rem;
margin-right: 0.75rem;
}
.user-info {
flex: 1;
.user-name {
display: block;
font-size: 0.9rem;
font-weight: 600;
color: white;
margin-bottom: 0.25rem;
}
.user-role {
display: block;
font-size: 0.8rem;
color: #94a3b8;
}
}
}
.signout-btn {
width: 100%;
background: transparent;
border: 1px solid rgba(255, 255, 255, 0.2);
color: white;
padding: 0.75rem 1rem;
border-radius: 8px;
cursor: pointer;
font-size: 0.9rem;
display: flex;
align-items: center;
gap: 0.5rem;
transition: all 0.3s ease;
&:hover {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.3);
}
}
}
}
// Main Content Styles
.main-content {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
// Top Header
.top-header {
background: white;
padding: 1rem 2rem;
border-bottom: 1px solid #e2e8f0;
display: flex;
justify-content: space-between;
align-items: center;
.breadcrumbs {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.9rem;
color: #64748b;
.breadcrumb-arrow {
font-size: 0.75rem;
color: #94a3b8;
}
span:last-child {
color: #1e293b;
font-weight: 500;
}
}
.header-actions {
display: flex;
gap: 0.75rem;
button {
background: transparent;
border: 1px solid #d1d5db;
color: #374151;
padding: 0.5rem 1rem;
border-radius: 6px;
cursor: pointer;
font-size: 0.875rem;
display: flex;
align-items: center;
gap: 0.5rem;
transition: all 0.2s ease;
&:hover {
background: #f9fafb;
border-color: #9ca3af;
}
}
}
}
// Main Header
.main-header {
background: white;
padding: 2rem;
border-bottom: 1px solid #e2e8f0;
display: flex;
justify-content: space-between;
align-items: center;
.header-left {
display: flex;
align-items: center;
gap: 1rem;
.header-icon {
width: 48px;
height: 48px;
background: linear-gradient(135deg, #667eea, #764ba2);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 1.25rem;
}
.header-content {
h1 {
margin: 0;
font-size: 1.75rem;
font-weight: 700;
color: #1e293b;
}
p {
margin: 0.25rem 0 0 0;
color: #64748b;
font-size: 0.95rem;
}
}
}
.create-btn {
background: linear-gradient(135deg, #1e40af, #1d4ed8);
color: white;
border: none;
padding: 0.875rem 1.5rem;
border-radius: 10px;
font-weight: 600;
font-size: 0.95rem;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
gap: 0.5rem;
&:hover {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}
}
}
// Tab Navigation
.tab-navigation {
background: white;
padding: 1rem 2rem;
border-bottom: 1px solid #e2e8f0;
display: flex;
justify-content: space-between;
align-items: center;
.tab-buttons {
display: flex;
gap: 0.5rem;
.tab-btn {
padding: 0.5rem 1rem;
border: none;
background: transparent;
color: #64748b;
font-weight: 500;
cursor: pointer;
border-radius: 6px;
transition: all 0.2s ease;
&.active {
background: #f1f5f9;
color: #1e293b;
}
&:hover:not(.active) {
background: #f8fafc;
color: #475569;
}
}
}
.tab-controls {
display: flex;
align-items: center;
gap: 1rem;
.sort-dropdown {
position: relative;
display: flex;
align-items: center;
.dropdown-icon {
position: absolute;
right: 0.75rem;
color: #64748b;
font-size: 0.875rem;
pointer-events: none;
z-index: 1;
}
select {
appearance: none;
background: white;
border: 1px solid #d1d5db;
padding: 0.5rem 2rem 0.5rem 0.75rem;
border-radius: 6px;
font-size: 0.875rem;
color: #374151;
cursor: pointer;
min-width: 140px;
&:focus {
outline: none;
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
}
}
.view-toggle {
display: flex;
background: #f1f5f9;
border-radius: 6px;
padding: 2px;
.view-btn {
background: transparent;
border: none;
padding: 0.5rem;
cursor: pointer;
border-radius: 4px;
color: #64748b;
transition: all 0.2s ease;
&.active {
background: white;
color: #1e293b;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
&:hover:not(.active) {
color: #475569;
}
}
}
}
}
// Content Area
.content-area {
flex: 1;
padding: 2rem;
overflow-y: auto;
background: #f8fafc;
// Remove existing form styling and make it clean
.hero-section-form,
.offerings-form,
.ecosystem-form,
.trending-apps-form,
.faq-form,
.CTASectionFormMaster,
.FooterFormMaster,
.banner-section-form {
background: transparent;
padding: 0;
border-radius: 0;
box-shadow: none;
margin: 0;
.hero-section-header,
.offerings-header,
.ecosystem-header,
.trending-apps-header,
.faq-header,
.cta-header,
.footer-header,
.banner-section-header {
display: none;
}
.form-container,
.offeringsContent,
.ecosystemContent,
.form-inputs,
.faq-inputs,
.cta-form,
.footer-form,
.banner-content {
background: transparent;
padding: 0;
border-radius: 0;
box-shadow: none;
border: none;
}
}
}
// Placeholder Content
.placeholder-content {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 4rem 2rem;
text-align: center;
.placeholder-icon {
width: 80px;
height: 80px;
background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
border-radius: 20px;
display: flex;
align-items: center;
justify-content: center;
color: #64748b;
font-size: 2rem;
margin-bottom: 2rem;
}
h2 {
margin: 0 0 1rem 0;
font-size: 1.5rem;
font-weight: 600;
color: #1e293b;
}
p {
margin: 0;
color: #64748b;
font-size: 1rem;
}
}
// Modal Overlay
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
padding: 2rem;
}
.create-modal {
background: white;
border-radius: 12px;
width: 100%;
max-width: 600px;
max-height: 90vh;
overflow: hidden;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
.modal-header {
padding: 1.5rem 2rem;
border-bottom: 1px solid #e2e8f0;
display: flex;
justify-content: space-between;
align-items: center;
background: #f8fafc;
h2 {
margin: 0;
font-size: 1.25rem;
font-weight: 600;
color: #1e293b;
}
.close-btn {
background: none;
border: none;
font-size: 1.5rem;
color: #64748b;
cursor: pointer;
padding: 0.25rem;
border-radius: 4px;
transition: all 0.2s ease;
&:hover {
background: #e2e8f0;
color: #374151;
}
}
}
.modal-content {
padding: 2rem;
overflow-y: auto;
max-height: calc(90vh - 80px);
// Style the form components inside modal
.hero-section-form,
.offerings-form,
.ecosystem-form,
.trending-apps-form,
.faq-form,
.CTASectionFormMaster,
.FooterFormMaster,
.banner-section-form {
.form-container,
.offeringsContent,
.ecosystemContent,
.form-inputs,
.faq-inputs,
.cta-form,
.footer-form,
.banner-content {
background: transparent;
padding: 0;
border: none;
box-shadow: none;
}
// Hide data display sections in modal
.hero-data-display,
.apps-display,
.added-titles,
.saved-posters,
.added-banners,
.added-faqs,
.apps-display,
.admin-cards-container {
display: none;
}
}
}
}
}
// Responsive Design
@media (max-width: 1024px) {
.sidebar {
width: 240px;
}
.main-content {
.main-header,
.tab-navigation,
.top-header {
padding: 1rem 1.5rem;
}
.content-area {
padding: 1.5rem;
}
}
}
@media (max-width: 768px) {
flex-direction: column;
.sidebar {
width: 100%;
height: auto;
flex-direction: row;
overflow-x: auto;
.sidebar-nav {
flex: 1;
display: flex;
padding: 0;
.nav-item {
min-width: 150px;
flex-shrink: 0;
}
}
.sidebar-footer {
display: none;
}
}
.main-content {
.main-header {
flex-direction: column;
gap: 1rem;
align-items: stretch;
.header-left {
justify-content: center;
}
.create-btn {
width: 100%;
justify-content: center;
}
}
.tab-navigation {
flex-direction: column;
gap: 1rem;
align-items: stretch;
.tab-controls {
justify-content: space-between;
}
}
.content-area {
padding: 1rem;
}
.modal-overlay {
padding: 1rem;
}
.create-modal {
max-height: 95vh;
}
}
}
}
// Modal Form Styles
.create-modal-form {
.form-group {
margin-bottom: 1.5rem;
label {
display: block;
margin-bottom: 0.5rem;
font-weight: 600;
color: #374151;
font-size: 0.875rem;
}
input,
textarea,
select {
width: 100%;
padding: 0.75rem;
border: 1px solid #d1d5db;
border-radius: 6px;
font-size: 0.875rem;
transition: all 0.2s ease;
font-family: inherit;
&:focus {
outline: none;
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
&.error {
border-color: #ef4444;
}
&::placeholder {
color: #9ca3af;
}
}
textarea {
resize: vertical;
min-height: 100px;
}
.error-text {
display: block;
color: #ef4444;
font-size: 0.75rem;
margin-top: 0.25rem;
}
.image-mode-toggle {
display: flex;
margin-bottom: 0.75rem;
background: #f3f4f6;
border-radius: 6px;
padding: 2px;
.mode-btn {
flex: 1;
padding: 0.5rem 1rem;
border: none;
background: transparent;
color: #6b7280;
font-size: 0.875rem;
font-weight: 500;
cursor: pointer;
border-radius: 4px;
transition: all 0.2s ease;
&.active {
background: white;
color: #374151;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
&:hover:not(.active) {
color: #374151;
}
}
}
}
.form-actions {
display: flex;
gap: 1rem;
margin-top: 2rem;
padding-top: 1.5rem;
border-top: 1px solid #e5e7eb;
button {
flex: 1;
padding: 0.75rem 1.5rem;
border-radius: 6px;
font-size: 0.875rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
&.cancel-btn {
background: #f3f4f6;
color: #374151;
border: 1px solid #d1d5db;
&:hover {
background: #e5e7eb;
}
}
&.save-btn {
background: #3b82f6;
color: white;
border: 1px solid #3b82f6;
&:hover {
background: #2563eb;
}
}
}
}
}
// Card-based layout for data display
.admin-cards-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 1.5rem;
margin-top: 1.5rem;
@media (max-width: 768px) {
grid-template-columns: 1fr;
}
}
.admin-card {
background: white;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
border: 1px solid #e2e8f0;
transition: all 0.3s ease;
&:hover {
transform: translateY(-2px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.card-image {
width: 100%;
height: 180px;
overflow: hidden;
background: #f1f5f9;
img {
width: 100%;
height: 100%;
object-fit: cover;
}
}
.card-content {
padding: 1.25rem;
.card-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 1rem;
margin-bottom: 0.75rem;
h3 {
margin: 0;
font-size: 1.1rem;
font-weight: 600;
color: #1e293b;
line-height: 1.4;
}
.status-badge {
padding: 0.25rem 0.75rem;
border-radius: 12px;
font-size: 0.75rem;
font-weight: 500;
white-space: nowrap;
&.active {
background: #dcfce7;
color: #166534;
}
&.inactive {
background: #fef3c7;
color: #92400e;
}
}
}
.card-description {
color: #64748b;
font-size: 0.875rem;
line-height: 1.5;
margin-bottom: 1rem;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
.card-meta {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
padding-top: 0.75rem;
border-top: 1px solid #f1f5f9;
.priority-badge {
padding: 0.25rem 0.75rem;
border-radius: 12px;
font-size: 0.75rem;
font-weight: 500;
&.high {
background: #fee2e2;
color: #991b1b;
}
&.medium {
background: #fef3c7;
color: #92400e;
}
&.low {
background: #dcfce7;
color: #166534;
}
}
.date {
color: #94a3b8;
font-size: 0.75rem;
}
}
.card-actions {
display: flex;
gap: 0.5rem;
button {
flex: 1;
padding: 0.5rem 0.75rem;
border: 1px solid #d1d5db;
background: white;
color: #374151;
border-radius: 6px;
font-size: 0.75rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
&:hover {
background: #f9fafb;
border-color: #9ca3af;
}
&.primary {
background: #3b82f6;
color: white;
border-color: #3b82f6;
&:hover {
background: #2563eb;
}
}
&.danger {
background: #ef4444;
color: white;
border-color: #ef4444;
&:hover {
background: #dc2626;
}
}
}
}
}
}