smartdocai / static /style.css
malaknihed's picture
Update static/style.css
96d3bde verified
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Arial', sans-serif;
}
body {
position: relative;
min-height: 100vh;
color: #5a3e2b;
overflow-x: hidden;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
body::after {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: var(--background-image, url('smartdocai.webp'));
background-size: cover;
background-position: center;
background-repeat: no-repeat;
z-index: -2;
opacity: 0.5;
}
body::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(125deg, rgba(163, 94, 237, 0.6) 0%, rgba(65, 159, 232, 0.6) 75%);
z-index: -1;
}
.app-container {
display: flex;
min-height: 100vh;
position: relative;
}
.sidebar {
width: 250px;
display: flex;
flex-direction: column;
gap: 30px;
border-right: 8px solid white;
padding-top: 20px;
background: transparent;
}
.logo-container {
text-align: center;
padding: 10px;
color: white;
border-radius: 10px;
margin: 0 10px;
}
.logo-top {
font-size: 28px;
font-weight: bold;
line-height: 1;
}
.logo-bottom {
font-size: 28px;
font-weight: bold;
margin-top: 5px;
}
.home-link {
display: flex;
justify-content: center;
margin-top: -10px;
margin-bottom: -10px;
}
.home-icon {
width: 30px;
height: 30px;
cursor: pointer;
transition: transform 0.3s ease;
}
.home-icon:hover {
transform: scale(1.2);
}
.menu-section {
display: flex;
flex-direction: column;
gap: 8px;
padding: 0 15px;
}
.menu-title {
padding: 12px 15px 5px;
font-weight: bold;
color: white;
font-size: 18px;
border-radius: 5px;
}
.menu-btn {
background: white;
border: none;
color: black;
padding: 12px 20px;
text-align: left;
cursor: pointer;
transition: all 0.3s ease;
font-size: 16px;
border-radius: 8px;
margin: 5px 0;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
position: relative;
border: 2px solid transparent;
background-clip: padding-box;
}
.menu-btn::before {
content: '';
position: absolute;
top: -4px;
left: -4px;
right: -4px;
bottom: -4px;
background: linear-gradient(135deg,#419FE899 0%, #A35EED99 100%);
z-index: -1;
border-radius: 10px;
transform: rotate(3deg);
}
.menu-btn:hover {
transform: translateX(8px);
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.main-content-area {
flex: 1;
padding: 30px;
background: transparent;
}
.document-container {
max-width: 800px;
margin: 0 auto;
background: transparent;
}
.document-main-title {
color: white;
text-align: left;
margin-left: 0;
margin-bottom: 30px;
/*font-size: 1.8rem;
margin-bottom: 0.5rem;
font-weight: 600;*/
}
.document-subtitle {
/*
font-size: 1.4rem;
margin-top: 0;
margin-bottom: 2rem;
font-weight: 500;*/
color: black;
text-align: center;
margin-bottom: 50px;
}
.upload-container {
/* background: transparent;
margin-bottom: 2rem;
display: flex;
flex-direction: column;
align-items: center;*/
display: flex;
flex-direction: column;
align-items: center;
gap: 30px;
}
.file-drop-zone {
display: flex;
border: 4px solid white;
align-items: center;
justify-content: center;
border-radius: 8px;
padding: 2.5rem 1rem;
text-align: center;
margin-bottom: 30px;
transition: all 0.3s ease;
cursor: pointer;
gap: 10px;
width: 100%;
max-width: 600px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.drop-text {
color:white;
font-weight: bold;
font-size: 1.2rem;
display: block;
}
.upload-icon {
width: 30px;
height: 30px;
cursor: pointer;
}
.file-input {
opacity: 0;
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
cursor: pointer;
}
.summary-action-btn {
margin-bottom: 35px;
background: white;
border: 2px solid black;
color: black;
width: 150px;
height: 50px;
font-size: 20px;
padding: 10px 20px;
border-radius: 8px;
cursor: pointer;
font-weight: bold;
transition: 0.3s;
}
.results-container {
background: white;
border-radius: 12px;
padding: 2rem;
margin-top: 20px;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
min-height: 230px;
}
.results-placeholder {
color: black;
font-weight: bold;
text-align: center;
padding: 3rem 1rem;
}
.placeholder-text {
margin: 0;
font-size: 1.3rem;
color: black;
}
.scrollable-text {
max-height: 150px;
overflow-y: auto;
padding-right: 10px;
margin-bottom: 20px;
text-align: center;
}
.titre {
text-align: center;
padding: 15px;
color: white;
border-radius: 10px;
margin: 0 10px;
font-size: 90px;
}
.about_us {
color: white;
text-align: center;
position: absolute;
bottom: 0;
padding-bottom: 30px;
font-weight: bold;
font-size: 20px;
}
.buttons-container {
display: grid;
grid-template-areas:
"images-title doc-title"
"images-buttons doc-buttons";
grid-template-columns: 1fr 1fr;
gap: 20px;
margin: 20px 10px;
width: 80%;
max-width: 600px;
}
.operations-images {
position: absolute;
top: 30%;
left: 25%;
grid-area: images-title;
text-align: center;
color: white;
font-size: 30px;
font-weight: bold;
}
.images-buttons {
padding-top: 85px;
grid-area: images-buttons;
display: flex;
flex-direction: column;
align-items: center;
position: absolute;
left: 30%;
top: 29%;
}
.operations-doc {
grid-area: doc-title;
text-align: center;
color: white;
font-size: 30px;
position:absolute;
left:55% ;
font-weight: bold;
}
.doc-buttons {
grid-area: doc-buttons;
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
position:absolute;
left:58% ;
top: 30%;
}
.menu-btn {
background: white;
border: none;
color: black;
padding: 12px 20px;
text-align: left;
cursor: pointer;
transition: all 0.3s ease;
font-size: 16px;
border-radius: 8px;
margin: 5px 0;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
position: relative;
border: 2px solid transparent;
background-clip: padding-box;
}
.button {
background: white;
border: none;
padding: 15px 25px;
margin: 10px 0;
border-radius: 10px;
font-size: 16px;
cursor: pointer;
position: relative;
width: 100%;
background-clip: padding-box;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
border: 2px solid transparent;
transition: all 0.3s ease;
}
.button::before {
content: '';
position: absolute;
top: -4px;
left: -4px;
right: -4px;
bottom: -4px;
background: linear-gradient(135deg, #419FE899 0%,#A35EED99 100%);
z-index: -1;
border-radius: 10px;
transform: rotate(3deg);
}
.button:hover {
transform: translateX(8px);
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.question-container {
display: flex;
align-items: center;
gap: 200px;
overflow: visible;
margin-top: 0px;
}
#questionInput {
flex-grow: 1;
padding: 5px;
font-size: 1.2rem;
border: none;
outline: none;
background: transparent;
text-align: center;
}
#questionInput::placeholder {
color:white;
font-weight: bold;
}
.question-btn {
margin-top: 0px;
margin-right: 250px;
width: 150px;
height: 50px;
font-size: 20px;
padding: 10px 20px;
background: white;
border: 2px solid white;
color: black;
border-radius: 8px;
cursor: pointer;
font-weight: bold;
}
.question {
display: flex;
border: 4px solid white;
align-items: center;
justify-content: center;
border-radius: 8px;
padding: 2.5rem 1rem;
text-align: center;
margin-bottom: 20px;
margin-left: 150px;
margin-top: 0px;
transition: all 0.3s ease;
cursor: pointer;
gap: 0px;
width: 600px;
height:100px ;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.questionn-container {
display: flex;
align-items: center;
gap: 200px;
overflow: visible;
margin-top: 0px;
}
#questionnInput {
flex-grow: 1;
padding: 5px;
font-size: 1.2rem;
border: none;
outline: none;
background: transparent;
text-align: center;
}
#questionnInput::placeholder {
color:white;
font-weight: bold;
}
.questionn-btn {
margin-top: 0px;
margin-right: 250px;
width: 150px;
height: 50px;
font-size: 20px;
padding: 10px 20px;
background: white;
border: 2px solid black;
color: black;
border-radius: 8px;
cursor: pointer;
font-weight: bold;
}
.questionn {
display: flex;
border: 4px solid white;
align-items: center;
justify-content: center;
border-radius: 8px;
padding: 2.5rem 1rem;
text-align: center;
margin-bottom: 20px;
margin-left: 150px;
margin-top: 0px;
transition: all 0.3s ease;
cursor: pointer;
gap: 0px;
width: 600px;
height:100px ;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.resultss-container {
background: white;
border-radius: 12px;
padding: 2rem;
margin-top: 10px;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
height: 230px;
}
.resultss-placeholder {
color: black;
font-weight: bold;
text-align: center;
padding: 3rem 1rem;
}
.action-container {
display: flex;
align-items: center;
gap: 200px;
margin-top: 5px;
}
.language-dropdown {
padding: 10px ;
border-radius: 5px;
border: 1px solid #ccc;
font-size: 16px;
width: 200px;
}
.summary-action-btn {
padding: 8px 15px;
background-color:white;
color: black;
border: none;
border-radius: 5px;
cursor: pointer;
}
.summary-action-btn:hover {
background-color:white;
}
.translate{
background: white;
border: 2px solid white;
color: black;
width: 150px;
height: 50px;
font-size: 20px;
padding: 10px 20px;
border-radius: 8px;
cursor: pointer;
font-weight: bold;
transition: 0.3s;
}
.translate:hover {
transform: translateX(8px);
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.result{
text-align: center;
}
.results-containe{
background: white;
border-radius: 12px;
padding: 2rem;
margin-top: 50px;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
height: 230px;
}
.visualiser{
background-color:white;
color: black;
border-radius: 5px;
border: 2px solid black;
font-size: 20px;
width: 200px;
height: 40px;
}
.visualiser:hover {
transform: translateX(8px);
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.summary-action-btn:hover {
transform: translateX(8px);
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.question-btn:hover {
transform: translateX(8px);
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
/* Anciens IDs */
#resultImage β†’ #graphResultImage
#placeholderText β†’ #graphPlaceholderText
#uploadForm β†’ #graphUploadForm
#fileInput β†’ #graphFileInput
#graphType β†’ #graphTypeSelect
#graphResultImage {
max-width: 100%;
max-height: 450px;
display: none;
margin: 0 auto;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
#graphPlaceholderText {
margin: 20px 0;
font-size: 1.3rem;
color: #666;
text-align: center;
}
#graphUploadForm {
width: 100%;
max-width: 800px;
margin: 0 auto;
}
#graphFileInput {
opacity: 0;
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
cursor: pointer;
}
#graphTypeSelect {
padding: 12px 15px;
border-radius: 8px;
border: 2px solid #ddd;
font-size: 16px;
width: 250px;
background: white;
cursor: pointer;
}
body, html {
overscroll-behavior: contain;
}
.graph-result-img {
display: none;
max-width: 100%;
max-height: 70vh;
margin: 20px auto;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.graph-results-container {
background: white;
border-radius: 12px;
padding: 2rem;
margin: 30px auto;
min-height: 60vh;
display: flex;
flex-direction: column;
justify-content: center;
}
.graph-generate-btn {
background: white;
border: 2px solid white;
color: black;
width: 150px;
height: 50px;
font-size: 20px;
padding: 10px 20px;
border-radius: 8px;
cursor: pointer;
font-weight: bold;
transition: 0.3s;
}
.graph-generate-btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.graph-generate-btn:active {
transform: translateY(0);
}
.download-btn {
padding: 8px 16px;
background: #419FE899;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
transition: all 0.3s;
}
.download-btn:hover {
background: #055fef99;
transform: translateY(-2px);
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.download-btn:active {
transform: translateY(0);
}
#downloadSection {
padding-top: 15px;
border-top: 1px solid #eee;
margin-top: 15px;
}