K2MAR's picture
Add T5 model integration for real summary generation
c43736a
:root {
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5;
font-weight: 400;
color: #213547;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.container {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
}
.card {
background: white;
border-radius: 16px;
padding: 40px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
width: 100%;
max-width: 420px;
}
.card.large {
max-width: 800px;
}
h1 {
font-size: 2rem;
margin-bottom: 10px;
color: #667eea;
text-align: center;
}
h2 {
font-size: 1.3rem;
margin-bottom: 15px;
color: #667eea;
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 30px;
padding-bottom: 20px;
border-bottom: 2px solid #f0f0f0;
}
.header h1 {
text-align: left;
margin: 0;
}
.header p {
color: #666;
margin-top: 5px;
}
form {
display: flex;
flex-direction: column;
gap: 15px;
margin: 20px 0;
}
input[type="email"],
input[type="password"],
input[type="text"] {
padding: 12px 16px;
border: 2px solid #e0e0e0;
border-radius: 8px;
font-size: 1rem;
transition: border-color 0.3s;
}
input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
outline: none;
border-color: #667eea;
}
input[type="file"] {
padding: 10px;
border: 2px dashed #e0e0e0;
border-radius: 8px;
cursor: pointer;
}
button {
padding: 12px 24px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
border-radius: 8px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
}
button:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
button:active {
transform: translateY(0);
}
.btn-secondary {
background: #6c757d;
padding: 10px 20px;
font-size: 0.9rem;
}
.message {
padding: 12px;
border-radius: 8px;
margin: 15px 0;
text-align: center;
font-weight: 500;
}
.link {
text-align: center;
color: #667eea;
cursor: pointer;
margin-top: 20px;
font-size: 0.9rem;
}
.link:hover {
text-decoration: underline;
}
.section {
margin: 30px 0;
padding: 20px;
background: #f8f9fa;
border-radius: 12px;
}
.section .header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
padding-bottom: 15px;
border-bottom: 2px solid #e0e0e0;
}
.section .header h2 {
margin: 0;
}
.btn-primary {
padding: 10px 20px;
background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
color: white;
border: none;
border-radius: 8px;
font-size: 0.9rem;
font-weight: 600;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
white-space: nowrap;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}
.btn-primary:disabled {
opacity: 0.6;
cursor: not-allowed;
transform: none;
}
.btn-summary {
padding: 8px 16px;
background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
color: white;
border: none;
border-radius: 6px;
font-size: 0.85rem;
font-weight: 600;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
white-space: nowrap;
}
.btn-summary:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}
.btn-summary:active {
transform: translateY(0);
}
.btn-summary:disabled {
opacity: 0.6;
cursor: not-allowed;
transform: none;
}
.documents {
display: flex;
flex-direction: column;
gap: 12px;
margin-top: 15px;
}
.document {
background: white;
padding: 16px;
border-radius: 8px;
border: 1px solid #e0e0e0;
display: flex;
flex-direction: column;
gap: 12px;
transition: box-shadow 0.2s;
}
.document:hover {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.doc-info {
display: flex;
flex-direction: column;
gap: 5px;
}
.doc-info strong {
color: #333;
font-size: 1rem;
}
.doc-info small {
color: #999;
font-size: 0.85rem;
text-transform: uppercase;
}
.doc-actions {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}
.doc-meta {
display: flex;
gap: 15px;
color: #666;
font-size: 0.9rem;
flex: 1;
}
.summary-box {
background: #fffbf0;
border-left: 4px solid #ffc107;
padding: 15px;
border-radius: 8px;
margin-top: 10px;
}
.summary-box strong {
color: #ff9800;
display: block;
margin-bottom: 8px;
}
.summary-box p {
color: #333;
line-height: 1.6;
margin: 0;
font-size: 0.95rem;
}
.btn-download {
padding: 8px 16px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
text-decoration: none;
border-radius: 6px;
font-size: 0.85rem;
font-weight: 600;
transition: transform 0.2s, box-shadow 0.2s;
white-space: nowrap;
}
.btn-download:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
.btn-download:active {
transform: translateY(0);
}
.empty {
text-align: center;
color: #999;
padding: 30px;
font-style: italic;
}
.search-results {
margin-top: 20px;
}
.search-results h3 {
font-size: 1.1rem;
margin-bottom: 15px;
color: #667eea;
}
.search-result {
background: white;
padding: 15px;
border-radius: 8px;
border-left: 4px solid #667eea;
margin-bottom: 12px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.result-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
}
.result-header strong {
color: #667eea;
font-size: 0.9rem;
}
.result-header small {
color: #999;
font-size: 0.8rem;
}
.result-text {
color: #333;
line-height: 1.6;
margin: 0;
font-size: 0.95rem;
}