PozoAppSiteOptim/src/AdminPanel/Styles/OfferingsForm.scss

613 lines
17 KiB
SCSS
Raw Normal View History

2025-11-06 02:23:21 +05:30
// OfferingsForm Styles - Clean and Modern Design
.OfferingsFormMaster {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
font-family:
"NeueMontreal",
-apple-system,
BlinkMacSystemFont,
sans-serif;
// Header Section
.ecosystem-form-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0;
padding: 40px 40px 32px;
border-bottom: 1px solid #e5e7eb;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
.ecosystem-header-left {
display: flex;
align-items: center;
gap: 20px;
.ecosystem-header-icon {
width: 50px;
height: 50px;
background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 1.5rem;
box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
border: 1px solid rgba(255, 255, 255, 0.1);
}
.ecosystem-header-content {
display: flex;
flex-direction: column;
align-items: flex-start;
h2 {
font-size: 2rem;
font-weight: 700;
color: #1e293b;
letter-spacing: -0.03em;
line-height: 1.2;
font-family: "Poppins", sans-serif;
}
p {
margin: 0;
font-size: 0.9375rem;
color: #64748b;
font-weight: 400;
letter-spacing: -0.01em;
font-family: "Poppins", sans-serif;
}
}
}
.ecosystem-create-btn {
background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
color: white;
border: none;
padding: 16px 32px;
border-radius: 12px;
font-weight: 600;
font-size: 0.9375rem;
cursor: pointer;
font-family: "Poppins", sans-serif;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
display: flex;
align-items: center;
gap: 10px;
box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
&:hover {
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}
}
}
// Tab Navigation
.ecosystem-tab-navigation {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 40px;
border-bottom: 1px solid #e5e7eb;
background: #f8fafc;
.ecosystem-tab-buttons {
display: flex;
gap: 16px;
.ecosystem-tab-btn {
padding: 8px 16px;
border: none;
background: transparent;
color: #64748b;
font-size: 0.875rem;
font-weight: 500;
cursor: pointer;
border-radius: 8px;
transition: all 0.2s ease;
font-family: "NeueMontreal", sans-serif;
&.ecosystem-active {
background: #e2e8f0;
color: #1e293b;
}
&:hover:not(.ecosystem-active) {
background: #f1f5f9;
color: #475569;
}
}
}
.ecosystem-tab-controls {
display: flex;
align-items: center;
gap: 16px;
.ecosystem-sort-dropdown {
select {
padding: 8px 12px;
border: 1px solid #d1d5db;
border-radius: 6px;
background: white;
color: #374151;
font-size: 0.875rem;
font-family: "NeueMontreal", sans-serif;
cursor: pointer;
&:focus {
outline: none;
border-color: #3b82f6;
}
}
}
.ecosystem-view-toggle {
display: flex;
border: 1px solid #d1d5db;
border-radius: 6px;
overflow: hidden;
.ecosystem-view-btn {
padding: 8px 12px;
border: none;
background: white;
color: #64748b;
cursor: pointer;
transition: all 0.2s ease;
font-family: "NeueMontreal", sans-serif;
&.ecosystem-active {
background: #e2e8f0;
color: #1e293b;
}
&:hover:not(.ecosystem-active) {
background: #f8fafc;
}
}
}
}
}
// Apps Display Section
.ecosystem-display {
padding: 32px;
.ecosystem-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
gap: 24px;
@media (max-width: 768px) {
grid-template-columns: 1fr;
gap: 16px;
}
}
}
// App Card Styles
.ecosystem-card {
background: white;
border-radius: 16px;
padding: 24px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
border: 2px solid transparent;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
&:hover {
transform: translateY(-4px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
border-color: #e2e8f0;
}
&.ecosystem-inactive {
opacity: 0.7;
border-color: #f6ad55;
.ecosystem-status {
color: #991b1b;
}
}
.ecosystem-card-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 16px;
h3 {
margin: 0;
font-size: 1.125rem;
font-weight: 700;
color: #1e293b;
line-height: 1.4;
letter-spacing: -0.02em;
font-family: "Poppins", sans-serif;
flex: 1;
margin-right: 16px;
}
.ecosystem-card-actions {
display: flex;
gap: 8px;
flex-wrap: wrap;
button {
padding: 6px 12px;
border: none;
border-radius: 8px;
font-size: 0.75rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
font-family: "NeueMontreal", sans-serif;
text-transform: uppercase;
letter-spacing: 0.5px;
&.ecosystem-edit-btn {
background: #dbeafe;
color: #1e40af;
&:hover {
background: #bfdbfe;
transform: translateY(-1px);
}
}
&.ecosystem-delete-btn {
background: #fee2e2;
color: #991b1b;
&:hover {
background: #fecaca;
transform: translateY(-1px);
}
}
&.ecosystem-status-btn {
&.ecosystem-activate {
background: #dcfce7;
color: #166534;
&:hover {
background: #bbf7d0;
transform: translateY(-1px);
}
}
&.ecosystem-deactivate {
background: #fef3c7;
color: #92400e;
&:hover {
background: #fde68a;
transform: translateY(-1px);
}
}
}
}
}
}
.ecosystem-card-content {
.ecosystem-poster-image {
margin-bottom: 16px;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
img {
width: 100%;
height: 200px;
object-fit: cover;
display: block;
}
}
p {
margin: 0 0 12px 0;
font-size: 0.875rem;
color: #64748b;
line-height: 1.5;
font-family: "NeueMontreal", sans-serif;
strong {
color: #374151;
font-weight: 600;
}
&.ecosystem-created-date {
font-size: 0.75rem;
color: #94a3b8;
margin-bottom: 8px;
}
&.ecosystem-status {
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
&.ecosystem-active {
color: #166534;
}
&.ecosystem-inactive {
color: #991b1b;
}
}
&:last-child {
margin-bottom: 0;
}
}
}
}
// Placeholder Content
.ecosystem-placeholder-content {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 80px 32px;
text-align: center;
background: transparent;
.ecosystem-placeholder-icon {
width: 120px;
height: 120px;
background: #f8fafc;
border: 2px solid #e2e8f0;
border-radius: 16px;
display: flex;
align-items: center;
justify-content: center;
color: #94a3b8;
font-size: 3.5rem;
margin-bottom: 40px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
h2 {
margin: 0 0 16px 0;
font-size: 1.75rem;
font-weight: 600;
color: #1e293b;
font-family: "Poppins", sans-serif;
letter-spacing: -0.02em;
}
p {
margin: 0;
color: #64748b;
font-size: 1rem;
font-family: "Poppins", sans-serif;
line-height: 1.5;
max-width: 400px;
}
}
// Modal Form Styles
.ecosystem-form {
padding: 20px 0;
.poster-section-title {
font-size: 1.125rem;
font-weight: 600;
color: #1e293b;
margin: 24px 0 16px 0;
padding-bottom: 8px;
border-bottom: 1px solid #e5e7eb;
font-family: "Poppins", sans-serif;
}
.ecosystem-form-group {
margin-bottom: 24px;
label {
display: block;
margin-bottom: 8px;
font-weight: 600;
color: #374151 !important;
font-size: 0.875rem;
font-family: "NeueMontreal", sans-serif;
}
input,
textarea {
width: 100% !important;
padding: 12px !important;
border: 1px solid #d1d5db !important;
border-radius: 6px !important;
font-size: 0.875rem !important;
transition: all 0.2s ease;
font-family: "NeueMontreal", sans-serif !important;
box-sizing: border-box;
&:focus {
outline: none !important;
border-color: #3b82f6 !important;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}
&::placeholder {
color: #9ca3af !important;
}
&.error {
border-color: #ef4444 !important;
box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}
}
textarea {
resize: vertical;
min-height: 100px !important;
}
.error-message {
display: block;
color: #ef4444;
font-size: 0.75rem;
margin-top: 4px;
font-family: "NeueMontreal", sans-serif;
}
}
}
}
// Global modal overrides for ecosystem form
.ant-modal {
.ecosystem-form {
padding: 20px 0;
.poster-section-title {
font-size: 1.125rem;
font-weight: 600;
color: #1e293b;
margin: 24px 0 16px 0;
padding-bottom: 8px;
border-bottom: 1px solid #e5e7eb;
font-family: "Poppins", sans-serif;
}
.ecosystem-form-group {
margin-bottom: 24px;
label {
display: block;
margin-bottom: 8px;
font-weight: 600;
color: #374151 !important;
font-size: 0.875rem;
font-family: "NeueMontreal", sans-serif;
}
input,
textarea {
width: 100% !important;
padding: 12px !important;
border: 1px solid #d1d5db !important;
border-radius: 6px !important;
font-size: 0.875rem !important;
transition: all 0.2s ease;
font-family: "NeueMontreal", sans-serif !important;
box-sizing: border-box;
&:focus {
outline: none !important;
border-color: #3b82f6 !important;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}
&::placeholder {
color: #9ca3af !important;
}
&.error {
border-color: #ef4444 !important;
box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}
}
textarea {
resize: vertical;
min-height: 100px !important;
}
.error-message {
display: block;
color: #ef4444;
font-size: 0.75rem;
margin-top: 4px;
font-family: "NeueMontreal", sans-serif;
}
}
}
}
// Responsive Design
@media (max-width: 768px) {
.OfferingsFormMaster {
.ecosystem-form-header {
flex-direction: column;
align-items: flex-start;
gap: 20px;
padding: 24px;
.ecosystem-header-left {
.ecosystem-header-content {
h2 {
font-size: 1.5rem;
}
}
}
}
.ecosystem-tab-navigation {
flex-direction: column;
align-items: flex-start;
gap: 16px;
padding: 16px 24px;
.ecosystem-tab-controls {
width: 100%;
justify-content: space-between;
}
}
.ecosystem-display {
padding: 16px;
}
.ecosystem-card {
padding: 16px;
.ecosystem-card-header {
flex-direction: column;
align-items: flex-start;
gap: 12px;
h3 {
margin-right: 0;
margin-bottom: 0;
}
.ecosystem-card-actions {
width: 100%;
justify-content: flex-start;
}
}
}
.ecosystem-placeholder-content {
padding: 60px 16px;
.ecosystem-placeholder-icon {
width: 100px;
height: 100px;
font-size: 3rem;
margin-bottom: 32px;
}
h2 {
font-size: 1.5rem;
}
p {
font-size: 0.875rem;
max-width: 300px;
}
}
}
}