Files
CK-X/app/public/css/results.css
2025-04-02 10:39:59 +05:30

506 lines
8.5 KiB
CSS

/* Results Page Styles */
.results-container {
padding: 20px;
max-width: 1200px;
margin: 0 auto;
min-height: calc(100vh - 160px);
}
.page-loader {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 300px;
}
.spinner {
border: 4px solid rgba(0, 0, 0, 0.1);
border-radius: 50%;
border-top: 4px solid #3498db;
width: 40px;
height: 40px;
animation: spin 1s linear infinite;
margin-bottom: 15px;
}
/* Animation for spinner */
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.error-message {
text-align: center;
padding: 40px;
background-color: #fff3f3;
border-radius: 8px;
border: 1px solid #ffcccc;
margin: 20px 0;
}
.error-message i {
font-size: 48px;
color: #e74c3c;
margin-bottom: 15px;
}
.error-message p {
margin-bottom: 20px;
color: #333;
font-size: 18px;
}
.results-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding-bottom: 15px;
border-bottom: 1px solid #e0e0e0;
}
.exam-info {
text-align: right;
color: #666;
}
.results-summary {
display: flex;
justify-content: space-between;
background-color: #f9f9f9;
border-radius: 8px;
padding: 20px;
margin-bottom: 30px;
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.score-display {
display: flex;
flex-direction: column;
align-items: flex-start;
}
.score-display h3 {
font-size: 18px;
font-weight: 500;
margin-bottom: 10px;
color: #333;
}
.score-box {
background-color: #2c3e50;
color: white;
font-size: 28px;
font-weight: bold;
padding: 10px 30px;
border-radius: 4px;
min-width: 150px;
text-align: center;
}
.rank-display {
display: flex;
align-items: center;
}
.rank-badge {
font-size: 24px;
font-weight: bold;
padding: 12px 30px;
border-radius: 4px;
text-align: center;
min-width: 180px;
}
.rank-high {
background-color: #27ae60;
color: white;
}
.rank-medium {
background-color: #f39c12;
color: white;
}
.rank-low {
background-color: #e74c3c;
color: white;
}
.questions-container {
display: flex;
flex-direction: column;
gap: 20px;
}
.question-card {
background-color: #f2f4f8;
border-radius: 8px;
overflow: hidden;
}
.question-header {
background-color: #e9ecef;
padding: 15px 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
.question-title {
font-size: 18px;
font-weight: 500;
margin: 0;
}
.question-score {
font-size: 16px;
}
.verification-items {
padding: 0;
margin: 0;
list-style: none;
}
.verification-item {
padding: 15px 20px;
border-bottom: 1px solid #e9ecef;
display: flex;
justify-content: space-between;
align-items: center;
background-color: white;
}
.verification-item:last-child {
border-bottom: none;
}
.verification-description {
flex-grow: 1;
margin-right: 20px;
}
.verification-status {
font-size: 24px;
color: #27ae60;
}
.status-success {
color: #27ae60;
}
.status-failure {
color: #e74c3c;
}
@media (max-width: 768px) {
.results-header {
flex-direction: column;
align-items: flex-start;
}
.exam-info {
text-align: left;
margin-top: 10px;
}
.results-summary {
flex-direction: column;
gap: 20px;
}
.score-box, .rank-badge {
width: 100%;
}
}
/* Blue header styling */
.blue-header {
background-color: #1d82e2;
color: white;
padding: 15px 0;
}
.blue-header .logo {
display: flex;
align-items: center;
}
.blue-header .logo h1 {
color: white;
margin: 0;
}
.blue-header .nav-link {
color: white;
text-decoration: none;
display: inline-flex;
align-items: center;
font-weight: 500;
}
.blue-header .nav-link:hover {
text-decoration: underline;
}
/* Results actions at top */
.results-actions {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin: 20px 0 30px 0;
justify-content: center;
}
.results-actions .btn {
padding: 10px 15px;
border-radius: 6px;
font-weight: 500;
display: flex;
align-items: center;
transition: all 0.2s ease;
}
.results-actions .btn i {
margin-right: 8px;
}
.results-actions .btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Add styles for answers content */
.answers-content {
width: 100%;
max-width: 1000px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.answers-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding-bottom: 15px;
border-bottom: 1px solid #eee;
}
.answers-header h2 {
margin: 0;
color: #333;
font-size: 1.8rem;
}
.markdown-content {
background-color: #f9f9f9;
border-radius: 6px;
padding: 20px;
line-height: 1.6;
}
/* Markdown styling */
.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
margin-top: 24px;
margin-bottom: 16px;
font-weight: 600;
line-height: 1.25;
color: #333;
}
.markdown-content h1 {
font-size: 2em;
border-bottom: 1px solid #eaecef;
padding-bottom: 0.3em;
}
.markdown-content h2 {
font-size: 1.5em;
border-bottom: 1px solid #eaecef;
padding-bottom: 0.3em;
}
.markdown-content h3 {
font-size: 1.25em;
}
.markdown-content p {
margin-top: 0;
margin-bottom: 16px;
}
.markdown-content code {
padding: 0.2em 0.4em;
margin: 0;
font-size: 85%;
background-color: rgba(27, 31, 35, 0.05);
border-radius: 3px;
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
.markdown-content pre {
padding: 16px;
overflow: auto;
font-size: 85%;
line-height: 1.45;
background-color: #f6f8fa;
border-radius: 3px;
margin-top: 0;
margin-bottom: 16px;
}
.markdown-content pre code {
padding: 0;
background-color: transparent;
}
.markdown-content ul,
.markdown-content ol {
padding-left: 2em;
margin-top: 0;
margin-bottom: 16px;
}
.markdown-content blockquote {
padding: 0 1em;
color: #6a737d;
border-left: 0.25em solid #dfe2e5;
margin: 0 0 16px 0;
}
.markdown-content img {
max-width: 100%;
box-sizing: content-box;
background-color: #fff;
}
.markdown-content table {
display: block;
width: 100%;
overflow: auto;
margin-top: 0;
margin-bottom: 16px;
border-collapse: collapse;
}
.markdown-content table th,
.markdown-content table td {
padding: 6px 13px;
border: 1px solid #dfe2e5;
}
.markdown-content table tr {
background-color: #fff;
border-top: 1px solid #c6cbd1;
}
.markdown-content table tr:nth-child(2n) {
background-color: #f6f8fa;
}
/* Modal styles */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
}
.modal-content {
background-color: white;
border-radius: 8px;
width: 100%;
max-width: 500px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
animation: modalFadeIn 0.3s ease;
}
@keyframes modalFadeIn {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 20px;
border-bottom: 1px solid #eee;
}
.modal-header h4 {
margin: 0;
font-size: 18px;
color: #333;
}
.modal-close-btn {
background: none;
border: none;
font-size: 24px;
cursor: pointer;
color: #999;
}
.modal-close-btn:hover {
color: #333;
}
.modal-body {
padding: 20px;
}
.modal-footer {
padding: 15px 20px;
border-top: 1px solid #eee;
display: flex;
justify-content: flex-end;
gap: 10px;
}
.warning-text {
color: #e74c3c;
font-weight: 500;
}
/* Ensure the danger button is prominently red */
.btn-danger {
background-color: #e74c3c;
color: white;
border: none;
}
.btn-danger:hover {
background-color: #c0392b;
}
/* Animation for modal fade-in */
.fade-in {
animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}