Files
CDN-APP-INSIDER/public/css/dashboard.styles.css
Dinawo f7658eca22
All checks were successful
continuous-integration/drone Build is passing
V1.0.0-beta.17 Update 2
2024-12-15 00:49:12 +01:00

641 lines
12 KiB
CSS

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');
:root {
--background: 0 0% 100%;
--foreground: 222.2 84% 4.9%;
--card: 0 0% 100%;
--card-foreground: 222.2 84% 4.9%;
--popover: 0 0% 100%;
--popover-foreground: 222.2 84% 4.9%;
--primary: 222.2 47.4% 11.2%;
--primary-foreground: 210 40% 98%;
--secondary: 210 40% 96.1%;
--secondary-foreground: 222.2 47.4% 11.2%;
--muted: 210 40% 96.1%;
--muted-foreground: 215.4 16.3% 46.9%;
--accent: 210 40% 96.1%;
--accent-foreground: 222.2 47.4% 11.2%;
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 210 40% 98%;
--border: 214.3 31.8% 91.4%;
--input: 214.3 31.8% 91.4%;
--ring: 222.2 84% 4.9%;
--radius: 0.5rem;
}
.dark {
--background: 222.2 84% 4.9%;
--foreground: 210 40% 98%;
--card: 222.2 84% 4.9%;
--card-foreground: 210 40% 98%;
--popover: 222.2 84% 4.9%;
--popover-foreground: 210 40% 98%;
--primary: 210 40% 98%;
--primary-foreground: 222.2 47.4% 11.2%;
--secondary: 217.2 32.6% 17.5%;
--secondary-foreground: 210 40% 98%;
--muted: 217.2 32.6% 17.5%;
--muted-foreground: 215 20.2% 65.1%;
--accent: 217.2 32.6% 17.5%;
--accent-foreground: 210 40% 98%;
--destructive: 0 62.8% 30.6%;
--destructive-foreground: 210 40% 98%;
--border: 217.2 32.6% 17.5%;
--input: 217.2 32.6% 17.5%;
--ring: 212.7 26.8% 83.9%;
}
.container {
max-width: 90%;
margin: 0 auto;
padding: 2rem;
flex: 1 0 auto;
}
.form-container {
background-color: hsl(var(--card));
border: 1px solid hsl(var(--border));
border-radius: var(--radius);
padding: 2rem;
}
.form-control {
width: 100%;
padding: 0.5rem;
border: 1px solid hsl(var(--border));
border-radius: var(--radius);
background-color: hsl(var(--background));
color: hsl(var(--foreground));
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: var(--radius);
font-weight: 500;
transition: all 0.3s ease;
cursor: pointer;
padding: 0.5rem 1rem;
}
.btn-primary {
background-color: hsl(var(--primary));
color: hsl(var(--primary-foreground));
}
.btn-primary:hover {
opacity: 0.9;
}
.btn-secondary {
background-color: hsl(var(--secondary));
color: hsl(var(--secondary-foreground));
}
.btn-secondary:hover {
opacity: 0.9;
}
.btn-success {
background-color: hsl(var(--primary));
color: hsl(var(--primary-foreground));
}
.btn-success:hover {
opacity: 0.9;
}
.btn-danger {
background-color: hsl(var(--destructive));
color: hsl(var(--destructive-foreground));
}
.btn-danger:hover {
opacity: 0.9;
}
.animate {
animation: fadeIn 0.5s ease-out;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.table-responsive {
overflow-x: auto;
}
.table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
}
.table th,
.table td {
padding: 0.75rem;
vertical-align: top;
border-top: 1px solid hsl(var(--border));
}
.table thead th {
vertical-align: bottom;
border-bottom: 2px solid hsl(var(--border));
}
.header {
background-color: hsl(var(--background));
border-bottom: 1px solid hsl(var(--border));
}
.dropdown-menu {
display: none;
background-color: hsl(var(--card));
border: 1px solid hsl(var(--border));
border-radius: var(--radius);
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
z-index: 1000;
min-width: 150px;
}
.dropdown-menu.show {
display: block;
}
.dropdown-item {
color: hsl(var(--foreground));
padding: 0.5rem 1rem;
text-decoration: none;
display: block;
}
.dropdown-item:hover {
background-color: hsl(var(--muted));
color: hsl(var(--foreground));
}
.dropdown-divider {
border-top: 1px solid hsl(var(--border));
}
.footer {
flex-shrink: 0;
background-color: hsl(var(--background));
border-top: 1px solid hsl(var(--border));
padding: 1rem 0;
}
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
justify-content: center;
align-items: center;
z-index: 1000;
}
.modal.show {
display: flex;
}
.modal-content {
background-color: hsl(var(--card));
border-radius: 15px;
box-shadow: 0 5px 15px rgba(0,0,0,0.3);
padding: 20px;
max-width: 90%;
width: 600px;
}
.modal-header, .modal-body, .modal-footer {
padding: 20px;
}
.modal-header {
border-bottom: none;
}
.modal-footer {
border-top: none;
display: flex;
justify-content: flex-end;
gap: 0.5rem;
}
.modal .close {
font-size: 28px;
opacity: 0.6;
transition: opacity 0.3s ease;
}
.modal .close:hover {
opacity: 1;
}
.navbar {
padding: 0.5rem 1rem;
}
/* Alignement des boutons à droite */
.navbar {
padding: 0.5rem 1rem !important;
}
.container-fluid {
display: flex !important;
justify-content: space-between !important;
align-items: center !important;
}
/* Alignement des boutons à droite */
.navbar-nav {
display: flex !important;
align-items: center !important;
margin-left: auto !important;
}
.navbar-nav .nav-item {
margin-left: 10px !important;
}
/* Style pour les boutons de la navbar */
.nav-btn {
padding: 0.375rem 0.75rem !important;
font-size: 1rem !important;
line-height: 1.5 !important;
border-radius: 0.25rem !important;
}
/* Style pour l'avatar de l'utilisateur */
.user-avatar {
width: 40px !important;
height: 40px !important;
object-fit: cover !important;
border-radius: 50% !important;
}
/* Style pour le bouton du dropdown */
#accountDropdownBtn {
padding: 0 !important;
border: none !important;
background: none !important;
}
/* Style pour le menu dropdown */
.dropdown-menu {
right: 0 !important;
left: auto !important;
}
/* Assurez-vous que le dropdown est positionné correctement */
.dropdown {
position: relative !important;
}
/* Ajustement pour les écrans plus petits */
@media (max-width: 768px) {
.navbar-nav {
flex-direction: row !important;
justify-content: flex-end !important;
width: 100% !important;
}
.navbar-nav .nav-item {
margin-left: 5px !important;
}
}
/* Animation de chargement stylisée */
.initial-loading {
position: fixed;
inset: 0;
background-color: #333;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 9999;
transition: background-color 0.3s ease;
}
.initial-loading > .loader {
border: 4px solid #fff;
border-top-color: transparent;
border-radius: 50%;
width: 40px;
height: 40px;
animation: spin 1s linear infinite;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.initial-loading > .message {
margin-top: 16px;
font-size: 16px;
font-weight: 600;
color: #fff;
}
.success-animation {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
gap: 1.5rem;
}
.success-icon {
width: 64px;
height: 64px;
background-color: #0EA5E9;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
position: relative;
transform: scale(0);
animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.success-icon svg {
width: 32px;
height: 32px;
color: white;
opacity: 0;
transform: scale(0.5);
animation: iconIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.2s;
}
.success-text {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.5rem;
opacity: 0;
transform: translateY(10px);
animation: textIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.4s;
}
.success-text h2 {
margin: 0;
color: hsl(var(--foreground));
font-size: 1.5rem;
font-weight: 600;
}
.success-text p {
margin: 0;
color: hsl(var(--muted-foreground));
font-size: 0.875rem;
}
.success-text .loading-message {
color: hsl(var(--muted-foreground));
font-size: 0.75rem;
opacity: 0.8;
margin-top: 0.5rem;
}
.progress-bar {
width: 200px;
height: 4px;
background: hsla(var(--foreground), 0.1);
border-radius: 2px;
overflow: hidden;
margin-top: 1rem;
opacity: 0;
animation: textIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.6s;
}
.progress-bar::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 40%;
height: 100%;
background-color: #10b981;
border-radius: 2px;
animation: loading 1.5s ease-in-out infinite;
}
@keyframes popIn {
from {
transform: scale(0);
}
to {
transform: scale(1);
}
}
@keyframes iconIn {
to {
opacity: 1;
transform: scale(1);
}
}
@keyframes textIn {
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes loading {
0% {
left: -40%;
}
100% {
left: 100%;
}
}
/* Animation de sortie */
.fade-out {
animation: fadeOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes fadeOut {
to {
opacity: 0;
}
}
/* Notifications container */
.notification-container {
position: fixed;
top: 1rem;
right: 1rem;
z-index: 1100;
display: flex;
flex-direction: column;
gap: 0.5rem;
pointer-events: none;
max-width: 100%;
padding: 1rem;
}
/* Individual notification */
.notification {
display: flex;
align-items: center;
background-color: hsl(var(--card));
border: 1px solid hsl(var(--border));
border-radius: var(--radius);
padding: 1rem;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
transform: translateX(120%);
opacity: 0;
transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
pointer-events: auto;
max-width: 380px;
margin-bottom: 0.5rem;
}
.notification.show {
transform: translateX(0);
opacity: 1;
}
/* Icon styles */
.notification-icon {
display: flex;
align-items: center;
justify-content: center;
width: 2rem;
height: 2rem;
border-radius: 50%;
margin-right: 1rem;
flex-shrink: 0;
}
/* Notification types */
.notification.success .notification-icon {
background: rgba(16, 185, 129, 0.1);
color: #10B981;
}
.notification.error .notification-icon {
background: rgba(239, 68, 68, 0.1);
color: #EF4444;
}
.notification.warning .notification-icon {
background: rgba(245, 158, 11, 0.1);
color: #F59E0B;
}
.notification.info .notification-icon {
background: rgba(59, 130, 246, 0.1);
color: #3B82F6;
}
/* Content styling */
.notification-content {
flex: 1;
}
.notification-title {
font-weight: 600;
font-size: 0.925rem;
margin-bottom: 0.25rem;
color: hsl(var(--foreground));
}
.notification-message {
font-size: 0.875rem;
color: hsl(var(--muted-foreground));
line-height: 1.4;
}
/* Dark mode adjustments */
.dark .notification {
background-color: hsl(var(--card));
border-color: hsl(var(--border));
}
.dark .notification-title {
color: hsl(var(--foreground));
}
.dark .notification-message {
color: hsl(var(--muted-foreground));
}
/* Animations */
@keyframes slideIn {
from {
transform: translateX(120%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
@keyframes slideOut {
from {
transform: translateX(0);
opacity: 1;
}
to {
transform: translateX(120%);
opacity: 0;
}
}
/* File info styles */
.file-info {
padding: 0.5rem;
background: rgba(var(--card), 0.5);
border-radius: var(--radius);
}
.file-info p {
margin-bottom: 0.5rem;
}
.file-info strong {
color: hsl(var(--foreground));
}
/* Metadata info styles */
.metadata-info {
padding: 0.5rem;
background: rgba(var(--card), 0.5);
border-radius: var(--radius);
}
.metadata-info p {
margin-bottom: 0.5rem;
}
.metadata-info strong {
color: hsl(var(--foreground));
}
/* Responsive adjustments */
@media (max-width: 640px) {
.notification-container {
left: 1rem;
right: 1rem;
}
.notification {
max-width: 100%;
}
}