codecraft-haven / style.css
Abmacode12's picture
Écran de gestion de projets (Première colonne) :
657ff42 verified
@tailwind base;
@tailwind components;
@tailwind utilities;
/* Custom scrollbar */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.05);
border-radius: 4px;
}
::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.15);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.25);
}
/* Smooth transitions */
button, a, input {
transition: all 0.15s ease;
}
/* Focus styles */
input:focus, button:focus {
outline: none;
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}
/* Image gallery styles */
#imageGallery {
min-height: 200px;
}
.download-btn {
transition: all 0.2s ease;
}
.download-btn:hover {
color: #3b82f6;
transform: translateY(-1px);
}
/* Rosalinda chat styles */
.wrap {
max-width: 980px;
margin: 0 auto;
padding: 1rem;
}
.chat {
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 1rem;
overflow: hidden;
background: rgba(255, 255, 255, 0.03);
}
.msgs {
height: 60vh;
overflow: auto;
padding: 1rem;
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.msg {
max-width: 85%;
padding: 0.75rem 1rem;
border-radius: 0.875rem;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.badge {
padding: 0.5rem 0.75rem;
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 999px;
background: rgba(255, 255, 255, 0.04);
font-size: 0.875rem;
}
/* Project space layout */
project-manager, code-explainer, code-visualizer {
display: flex;
flex-direction: column;
}
/* Responsive layout */
@media (max-width: 1024px) {
.app-container {
flex-direction: column;
}
project-manager {
width: 100% !important;
height: auto !important;
max-height: 300px;
}
code-explainer, code-visualizer {
width: 100% !important;
}
code-visualizer {
border-left: none !important;
border-top: 1px solid #334155;
}
}
/* Preview panel styles */
#previewPanel {
background: rgba(17, 24, 39, 0.5);
}
#mediaResults {
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.aspect-w-16 {
position: relative;
padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}
.aspect-h-9 {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.aspect-square {
aspect-ratio: 1/1;
}
.message-ia {
background: #e3f2fd;
padding: 12px;
border-radius: 12px;
margin-bottom: 15px;
max-width: 80%;
color: #333;
}
.message-utilisateur {
background: #007bff;
color: white;
padding: 12px;
border-radius: 12px;
margin-bottom: 15px;
max-width: 80%;
margin-left: auto;
}
#apercu-section {
background: #1a1a1a;
color: white;
padding: 20px;
border-radius: 10px;
height: 60vh;
overflow-y: auto;
}
#controles-generation button {
transition: all 0.2s ease;
}
#controles-generation button:hover {
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.msg {
word-break: break-word;
white-space: pre-wrap;
padding: 0.75rem 1rem;
border-radius: 0.75rem;
max-width: 80%;
border: 1px solid;
}
#chatContainer {
display: flex;
flex-direction: column;
height: 100%;
}
/* Microphone animation */
@keyframes pulse {
0%, 100% {
transform: scale(1);
opacity: 1;
}
50% {
transform: scale(1.05);
opacity: 0.8;
}
}
.listening {
animation: pulse 1.5s infinite;
background-color: rgba(239, 68, 68, 0.2) !important;
border-color: rgba(239, 68, 68, 0.5) !important;
}
/* File upload preview */
.file-preview {
max-width: 100%;
max-height: 200px;
border-radius: 0.5rem;
margin-top: 0.5rem;
border: 1px solid rgba(255, 255, 255, 0.1);
}
#chatAttachBtn:hover {
color: #10b981;
}
.opacity-50 {
opacity: 0.5;
cursor: not-allowed;
}
.msg {
word-break: break-word;
white-space: pre-wrap;
}