EmoVitt / static /css /style.css
manhteky123's picture
Upload 23 files
7b34c4b verified
/* Custom CSS for EmoVIT Application */
:root {
--primary-color: #4f46e5;
--primary-dark: #3730a3;
--secondary-color: #06b6d4;
--success-color: #10b981;
--warning-color: #f59e0b;
--danger-color: #ef4444;
--light-color: #f8fafc;
--dark-color: #1e293b;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
line-height: 1.6;
}
/* Background Gradient */
.bg-gradient-primary {
background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
min-height: 100vh;
}
/* Custom Card Styling */
.card {
border: none;
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
transition: all 0.3s ease;
}
.card:hover {
transform: translateY(-2px);
box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.15), 0 15px 15px -5px rgba(0, 0, 0, 0.06);
}
/* Button Styling */
.btn {
border-radius: 12px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
transition: all 0.3s ease;
border: 2px solid transparent;
}
.btn-primary {
background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
border: none;
box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}
.btn-outline-primary {
border-color: var(--primary-color);
color: var(--primary-color);
}
.btn-outline-primary:hover {
background: var(--primary-color);
border-color: var(--primary-color);
transform: translateY(-2px);
}
/* Form Styling */
.form-control {
border-radius: 10px;
border: 2px solid #e2e8f0;
padding: 12px 16px;
font-size: 16px;
transition: all 0.3s ease;
}
.form-control:focus {
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
transform: translateY(-1px);
}
.form-control-lg {
padding: 16px 20px;
font-size: 18px;
}
/* Alert Styling */
.alert {
border-radius: 12px;
border: none;
padding: 20px;
font-weight: 500;
}
.alert-info {
background: linear-gradient(135deg, #e0f2fe, #b3e5fc);
color: #0277bd;
}
.alert-success {
background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
color: #2e7d32;
}
.alert-danger {
background: linear-gradient(135deg, #ffebee, #ffcdd2);
color: #c62828;
}
/* Loading Spinner */
.spinner-border {
width: 3rem;
height: 3rem;
border-width: 0.3em;
}
/* Image Preview */
#previewImage {
max-width: 100%;
border-radius: 10px;
transition: transform 0.3s ease;
}
#previewImage:hover {
transform: scale(1.02);
}
/* Upload Section */
.upload-section {
position: relative;
}
.upload-section::before {
content: '';
position: absolute;
top: -20px;
left: 50%;
transform: translateX(-50%);
width: 60px;
height: 4px;
background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
border-radius: 2px;
}
/* Results Section */
.emotion-result {
text-align: center;
}
.emotion-result h4 {
margin-bottom: 20px;
}
/* Icon Styling */
.fas, .far {
transition: transform 0.3s ease;
}
.btn:hover .fas,
.btn:hover .far {
transform: scale(1.1);
}
/* Card Headers */
.card-header {
background: linear-gradient(135deg, #f8fafc, #e2e8f0) !important;
border-bottom: 2px solid #e2e8f0;
border-radius: 12px 12px 0 0 !important;
}
/* Responsive Design */
@media (max-width: 768px) {
.container {
padding: 15px;
}
.card-body {
padding: 30px 20px;
}
.display-4 {
font-size: 2.5rem;
}
.btn-lg {
padding: 12px 30px;
font-size: 16px;
}
}
/* Animations */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.card {
animation: fadeIn 0.6s ease-out;
}
/* Custom Utilities */
.rounded-4 {
border-radius: 1.5rem !important;
}
.text-white-50 {
color: rgba(255, 255, 255, 0.75) !important;
}
/* File Input Styling */
input[type="file"] {
cursor: pointer;
}
input[type="file"]::-webkit-file-upload-button {
background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
color: white;
border: none;
padding: 8px 16px;
border-radius: 8px;
margin-right: 10px;
cursor: pointer;
font-weight: 600;
transition: all 0.3s ease;
}
input[type="file"]::-webkit-file-upload-button:hover {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}
/* Progress Bar (for future use) */
.progress {
height: 8px;
border-radius: 4px;
background-color: #e2e8f0;
}
.progress-bar {
background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
border-radius: 4px;
}
/* Tooltip Styling */
.tooltip {
font-size: 12px;
}
.tooltip-inner {
background-color: var(--dark-color);
border-radius: 6px;
}
/* Focus States for Accessibility */
.btn:focus,
.form-control:focus {
outline: none;
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25);
}
/* Error Styling */
.is-invalid {
border-color: var(--danger-color);
}
.invalid-feedback {
color: var(--danger-color);
font-weight: 500;
}