Files
no-copy-admin-panel-frontend/src/app/styles/global-styles.scss
T

817 lines
14 KiB
SCSS
Raw Normal View History

2026-01-19 12:55:41 +07:00
@use './variable.scss' as v;
:root {
--primary-color: #2563eb;
--primary-hover: #1d4ed8;
--secondary-color: #64748b;
--success-color: #10b981;
--danger-color: #ef4444;
--warning-color: #f59e0b;
--info-color: #3b82f6;
--background: #f8fafc;
--surface: #ffffff;
--border: #e2e8f0;
--text-primary: #0f172a;
--text-secondary: #64748b;
--shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
--shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.language-switcher {
position: relative;
.switcher-btn {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
padding: 0.5rem 1rem;
font-size: 0.875rem;
font-weight: 500;
color: v.$p-color;
background-color: v.$white;
border: 2px solid v.$p-color;
border-radius: 0.375rem;
box-shadow: 0 1px 2px 0 v.$shadow-1;
transition: background-color 0.2s;
cursor: pointer;
&:hover {
background-color: #f9fafb;
}
&:focus {
outline: none;
}
}
.switcher-list {
position: absolute;
right: 0;
z-index: 10;
width: 100%;
margin-top: 0.5rem;
transform-origin: top right;
background-color: v.$white;
border: 2px solid v.$p-color;
border-radius: 0.375rem;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
0 4px 6px -2px rgba(0, 0, 0, 0.05);
&:focus {
outline: none;
}
.language-btn {
display: flex;
align-items: center;
width: 100%;
padding: 0.5rem 1rem;
font-size: 0.875rem;
text-align: left;
transition: background-color 0.2s ease;
color: v.$p-color;
&:hover {
background-color: #dbeafe;
}
&.active {
background-color: #eff6ff;
font-weight: 700;
}
}
}
}
.admin-panel {
.admin-sidebar {
2026-01-21 19:31:10 +07:00
width: var(--side-bar-width);
2026-01-19 12:55:41 +07:00
background: var(--surface);
border-right: 1px solid var(--border);
position: fixed;
height: 100vh;
overflow-y: auto;
z-index: 1000;
.admin-nav {
padding: 16px 0;
}
.admin-logo {
padding: 24px 20px;
border-bottom: 1px solid var(--border);
h1 {
font-size: 20px;
font-weight: 700;
color: var(--primary-color);
}
p {
font-size: 12px;
color: var(--text-secondary);
margin-top: 4px;
}
}
.admin-nav-item {
padding: 12px 20px;
cursor: pointer;
transition: all 0.2s;
border-left: 3px solid transparent;
display: flex;
align-items: center;
gap: 12px;
color: var(--text-secondary);
font-size: 14px;
font-weight: 500;
svg {
font-size: 18px;
width: 24px;
text-align: center;
color: var(--primary-color);
}
&.active {
background: #eff6ff;
color: var(--primary-color);
border-left-color: var(--primary-color);
}
}
}
.admin-header {
background: var(--surface);
padding: 20px 24px;
border-radius: 12px;
margin-bottom: 24px;
box-shadow: var(--shadow);
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 16px;
.admin-header-left {
h2 {
font-size: 24px;
font-weight: 700;
margin-bottom: 4px;
}
p {
color: var(--text-secondary);
font-size: 14px;
}
}
.admin-user-info {
display: flex;
align-items: center;
gap: 10px;
padding: 6px 16px;
background: var(--background);
border-radius: 8px;
border: 1px solid var(--border);
}
.admin-header-right {
display: flex;
gap: 12px;
align-items: center;
flex-wrap: wrap;
}
.admin-user-details span {
display: block;
font-size: 13px;
}
.admin-user-details .role {
color: var(--text-secondary);
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.admin-user-details .name {
font-weight: 600;
color: var(--text-primary);
}
}
.admin-main {
flex: 1;
margin-left: 280px;
width: calc(100% - 280px);
padding: 24px;
max-width: 100%;
overflow-x: hidden;
}
.btn-primary {
background: var(--primary-color);
color: white;
}
.btn {
padding: 12px 24px;
border-radius: 8px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
display: inline-flex;
align-items: center;
gap: 8px;
text-decoration: none;
white-space: nowrap;
}
.switcher-btn {
border: 2px solid var(--primary-color);
color: var(--primary-color);
padding: 12px 24px;
.switcher-list {
background-color: v.$white;
border: 2px solid var(--primary-color);
}
}
.dashboard-general-info {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 20px;
margin-bottom: 24px;
.stat-card {
background: var(--surface);
padding: 20px;
border-radius: 12px;
box-shadow: var(--shadow);
transition: all 0.3s;
border: 1px solid var(--border);
}
.stat-card {
background: var(--surface);
padding: 20px;
border-radius: 12px;
box-shadow: var(--shadow);
transition: all 0.3s;
border: 1px solid var(--border);
}
.stat-card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
}
.stat-card-value {
font-size: 32px;
font-weight: 700;
color: var(--text-primary);
margin-bottom: 4px;
}
.stat-card-label {
font-size: 12px;
color: var(--text-secondary);
}
.stat-card-footer {
margin-top: 12px;
padding-top: 12px;
border-top: 1px solid var(--border);
font-size: 12px;
color: var(--text-secondary);
}
}
.admin-content {
background: var(--surface);
border-radius: 12px;
box-shadow: var(--shadow);
overflow: hidden;
.content-header {
padding: 20px 24px;
border-bottom: 1px solid var(--border);
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 12px;
h3 {
font-size: 18px;
font-weight: 600;
}
}
.content-body {
padding: 24px;
max-width: 100%;
overflow-x: auto;
}
2026-01-21 19:31:10 +07:00
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 20px;
margin-bottom: 24px;
}
2026-01-19 12:55:41 +07:00
.admin-table {
width: 100%;
border-collapse: collapse;
font-size: 14px;
min-width: 800px;
thead {
background: var(--background);
}
th {
padding: 12px 16px;
text-align: left;
font-weight: 600;
color: var(--text-secondary);
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.5px;
border-bottom: 2px solid var(--border);
}
td {
padding: 12px 16px;
border-bottom: 1px solid var(--border);
color: var(--text-primary);
}
tbody tr {
transition: background 0.2s;
}
.badge {
padding: 4px 12px;
border-radius: 12px;
font-size: 12px;
font-weight: 500;
display: inline-block;
}
.badge-primary {
background: #eff6ff;
color: var(--primary-color);
}
}
}
.users-top {
&-user {
font-weight: 500;
}
&-mail {
font-size: 12px;
color: var(--text-secondary);
}
}
2026-01-19 16:34:29 +07:00
}
.table-filtres-input {
width: 100%;
padding: 8px 16px;
font-size: 14px;
font-weight: 500;
line-height: 1.25;
background-color: #ffffff;
border: 2px solid #e2e8f0;
border-radius: 12px;
&:hover {
background-color: #f9fafb;
}
&:focus {
outline: none;
box-shadow: 0 0 0 2px rgba(99, 101, 241, 0.53);
outline: 2px solid transparent;
outline-offset: 2px;
}
}
.dropdown-wrapper {
position: relative;
width: 100%;
.dropdown-button {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
padding: 8px 16px;
font-size: 14px;
font-weight: 500;
line-height: 1.25;
background-color: #ffffff;
border: 2px solid #e2e8f0;
border-radius: 12px;
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
transition: background-color 0.2s ease-in-out;
&:hover {
background-color: #f9fafb;
}
&:focus {
outline: none;
box-shadow: 0 0 0 2px rgba(99, 101, 241, 0.53);
outline: 2px solid transparent;
outline-offset: 2px;
}
}
.dropdown-list {
position: absolute;
right: 0;
z-index: 10;
width: 100%;
margin-top: 8px;
transform-origin: top right;
background-color: #ffffff;
border: 2px solid #e2e8f0;
border-radius: 12px;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
0 4px 6px -2px rgba(0, 0, 0, 0.05);
&:focus {
outline: none;
}
}
.dropdown-item {
display: flex;
align-items: center;
width: 100%;
padding: 8px 16px;
font-size: 14px;
text-align: left;
cursor: pointer;
user-select: none;
&:hover {
background-color: #dbeafe;
}
&.current {
font-weight: 700;
}
}
}
.tanstak-table-wrapper {
padding: 1.5rem;
margin: 0 auto;
.btn-modal {
transition: all 0.3ms ease-in-out;
border-radius: 10px;
padding: 5px 20px;
font-weight: 500;
}
:where(.divide-gray-200 > tr:last-child) {
border-bottom: 1px solid var(--color-gray-200);
}
.tanstak-table-filtres {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: flex-start;
gap: 1rem;
padding-bottom: 1rem;
padding-top: 0;
padding-left: 0;
padding-right: 0;
@media (min-width: 768px) {
flex-direction: row;
align-items: center;
}
.table-filtres-wrapper {
display: flex;
flex-direction: column;
gap: 1rem;
width: 100%;
@media (min-width: 768px) {
flex-direction: row;
width: auto;
}
.table-filtres-item {
display: flex;
flex-direction: column;
width: 12.5rem;
}
.table-filtres-label {
font-size: 0.875rem;
font-weight: 500;
margin-bottom: 0.25rem;
}
}
}
.tanstak-table-pagination {
display: flex;
flex-direction: column;
align-items: flex-end;
justify-content: space-between;
margin-top: 1.5rem;
gap: 1rem;
@media (min-width: 768px) {
flex-direction: row;
}
.pagination-info {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.875rem;
&-pages {
color: v.$text-p;
}
&-files {
color: v.$text-s;
}
}
.pagination-controls {
display: flex;
align-items: center;
gap: 0.5rem;
.arrow {
padding-left: 0.5rem;
padding-right: 0.5rem;
padding-top: 0.25rem;
padding-bottom: 0.25rem;
border: 2px solid #e2e8f0;
border-radius: 10px;
box-shadow: 0 1px 2px #0000000d;
/* */
&:hover {
background-color: v.$bg-light;
}
&:disabled {
opacity: 0.5;
cursor: not-allowed;
}
}
&-pages {
display: flex;
align-items: center;
gap: 0.25rem;
button {
border: 2px solid v.$p-color;
padding-left: 0.75rem;
padding-right: 0.75rem;
padding-top: 0.25rem;
padding-bottom: 0.25rem;
border-radius: 10px;
&.current {
background-color: v.$p-color;
color: v.$white;
}
&.other {
&:hover {
background-color: v.$bg-light;
}
}
}
}
}
}
.tanstak-table-block {
overflow-x: auto;
border-radius: 0.5rem;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.tanstak-table {
width: 100%;
table-layout: fixed;
/* table-layout: auto; */
@media (max-width: 1200px) {
width: 1200px;
}
>*+* {
border-top: 1px solid v.$b-color-2;
}
> :not(:last-child) {
border-bottom: 1px solid v.$b-color-2;
}
&-head {
background-color: v.$bg-light;
th {
padding-left: 1rem;
padding-right: 1rem;
padding-top: 0.75rem;
padding-bottom: 0.75rem;
text-align: left;
font-size: 0.75rem;
font-weight: 500;
color: v.$text-p;
text-transform: uppercase;
letter-spacing: 0.05em;
white-space: nowrap;
}
.column {
display: flex;
align-items: center;
justify-content: center;
&.start {
justify-content: start;
}
.sort-button {
margin-left: 0.5rem;
padding: 0.25rem;
border-radius: 0.25rem;
&:hover {
background-color: v.$b-color-1;
}
}
}
}
&-body {
background-color: v.$white;
>*+* {
border-top: 1px solid v.$b-color-2;
}
tr {
transition: background-color 0.2s ease-in-out;
&:hover {
background-color: v.$bg-light;
/* background-color: v.$b-color-1; */
}
}
td {
padding-left: 1rem;
padding-right: 1rem;
padding-top: 1rem;
padding-bottom: 1rem;
white-space: nowrap;
}
.actions {
display: flex;
justify-content: center;
gap: 5px;
flex-wrap: wrap;
&-group {
display: flex;
gap: 5px;
}
button {
padding: 4px 12px;
font-size: 14px;
line-height: 20px;
border-radius: 4px;
color: v.$white;
.icon {}
@media (max-width: 1200px) {
padding: 4px;
}
}
}
}
}
2026-01-21 19:31:10 +07:00
}
#plans-container {
.stats-grid {
.stat-card {
background: var(--surface);
padding: 20px;
border-radius: 12px;
box-shadow: var(--shadow);
transition: all 0.3s;
border: 1px solid var(--border);
&:hover {
box-shadow: var(--shadow-lg);
transform: translateY(-2px);
}
.stat-card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
}
.stat-card-title {
font-size: 13px;
color: var(--text-secondary);
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.stat-card-icon {
width: 40px;
height: 40px;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
background: #eff6ff;
}
.stat-card-value {
font-size: 32px;
font-weight: 700;
color: var(--text-primary);
margin-bottom: 4px;
}
.stat-card-label {
font-size: 12px;
color: var(--text-secondary);
}
.stat-card-footer {
margin-top: 12px;
padding-top: 12px;
border-top: 1px solid var(--border);
font-size: 12px;
color: var(--text-secondary);
}
.btn-outline {
background: transparent;
border: 1px solid var(--border);
color: var(--text-primary);
&:hover {
background: var(--background);
}
}
}
}
2026-01-19 12:55:41 +07:00
}