/* Swim Rules Agent CSS Styles */
/* Reset and Base Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: #333;
background-color: #f5f7fa;
min-height: 100vh;
}
/* Container Layout */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* Header Styles */
.header {
background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
color: white;
padding: 2rem;
border-radius: 10px;
text-align: center;
margin-bottom: 2rem;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.header h1 {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 0.5rem;
}
.header h2 {
font-size: 1.3rem;
font-weight: 400;
opacity: 0.9;
}
/* Main Content */
.main-content {
flex: 1;
display: flex;
flex-direction: column;
gap: 2rem;
}
/* Input Section */
.input-section {
background: white;
padding: 2rem;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
border: 1px solid #e1e8ed;
}
.input-section h3 {
color: #2c3e50;
margin-bottom: 1rem;
font-size: 1.2rem;
}
.input-container {
position: relative;
margin-bottom: 1.5rem;
}
.scenario-textarea {
width: 100%;
min-height: 120px;
padding: 1rem;
border: 2px solid #ddd;
border-radius: 8px;
font-size: 1rem;
line-height: 1.5;
resize: vertical;
transition: border-color 0.3s ease;
font-family: inherit;
}
.scenario-textarea:focus {
outline: none;
border-color: #3498db;
box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}
.scenario-textarea::placeholder {
color: #95a5a6;
font-style: italic;
}
.char-counter {
text-align: right;
margin-top: 0.5rem;
color: #7f8c8d;
font-size: 0.9rem;
}
.char-counter.warning {
color: #e67e22;
}
.char-counter.danger {
color: #e74c3c;
font-weight: bold;
}
/* Button Styles */
.button-container {
display: flex;
gap: 1rem;
flex-wrap: wrap;
}
.btn {
padding: 0.75rem 1.5rem;
border: none;
border-radius: 6px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.btn:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.btn-primary {
background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
color: white;
}
.btn-primary:hover:not(:disabled) {
background: linear-gradient(135deg, #229954 0%, #27ae60 100%);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}
.btn-secondary {
background: #95a5a6;
color: white;
}
.btn-secondary:hover:not(:disabled) {
background: #7f8c8d;
transform: translateY(-2px);
}
.btn-example {
background: #f39c12;
color: white;
}
.btn-example:hover:not(:disabled) {
background: #e67e22;
transform: translateY(-2px);
}
/* Loading Indicator */
.loading-indicator {
text-align: center;
padding: 2rem;
background: white;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.spinner {
width: 40px;
height: 40px;
border: 4px solid #f3f3f3;
border-top: 4px solid #3498db;
border-radius: 50%;
animation: spin 1s linear infinite;
margin: 0 auto 1rem;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Results Section */
.results-section {
background: white;
padding: 2rem;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
border: 1px solid #e1e8ed;
}
.results-section h3 {
color: #2c3e50;
text-align: center;
font-size: 1.5rem;
margin-bottom: 2rem;
padding-bottom: 1rem;
border-bottom: 2px solid #ecf0f1;
letter-spacing: 1px;
}
.results-section h4 {
color: #34495e;
margin-bottom: 1rem;
font-size: 1.1rem;
}
/* Decision Banner */
.decision-container {
margin-bottom: 2rem;
}
.decision-banner {
display: flex;
align-items: center;
gap: 1rem;
padding: 1.5rem;
border-radius: 8px;
font-size: 1.2rem;
font-weight: bold;
border: 2px solid;
transition: all 0.3s ease;
}
.decision-banner.allowed {
background-color: #d5f4e6;
border-color: #27ae60;
color: #1e8449;
}
.decision-banner.disqualification {
background-color: #fadbd8;
border-color: #e74c3c;
color: #c0392b;
}
.decision-icon {
font-size: 1.5rem;
}
.decision-text {
flex: 1;
}
/* Rationale Section */
.rationale-container {
margin-bottom: 2rem;
}
.rationale-text {
background-color: #f8f9fa;
padding: 1.5rem;
border-radius: 8px;
border-left: 4px solid #3498db;
line-height: 1.8;
white-space: pre-wrap;
font-size: 1rem;
}
/* Citations Section */
.citations-container {
margin-bottom: 1rem;
}
.citations-content {
background-color: #f8f9fa;
padding: 1.5rem;
border-radius: 8px;
border-left: 4px solid #9b59b6;
}
.citation-category {
margin-bottom: 1.5rem;
}
.citation-category:last-child {
margin-bottom: 0;
}
.citation-category h5 {
color: #8e44ad;
margin-bottom: 0.8rem;
font-size: 1rem;
font-weight: 600;
}
.citation-list {
list-style: none;
padding: 0;
}
.citation-item {
background: white;
padding: 0.8rem 1rem;
margin-bottom: 0.5rem;
border-radius: 6px;
border-left: 3px solid #9b59b6;
transition: all 0.2s ease;
}
.citation-item:hover {
background-color: #f1f2f6;
transform: translateX(5px);
}
.citation-number {
font-weight: bold;
color: #8e44ad;
}
.citation-title {
color: #2c3e50;
margin-left: 0.5rem;
}
/* Modal Styles */
.modal {
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: white;
border-radius: 10px;
width: 90%;
max-width: 600px;
max-height: 80vh;
overflow-y: auto;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem;
border-bottom: 1px solid #eee;
}
.modal-header h3 {
margin: 0;
color: #2c3e50;
}
.close-btn {
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
color: #95a5a6;
padding: 0;
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
}
.close-btn:hover {
color: #e74c3c;
}
.modal-body {
padding: 1.5rem;
}
.example-category {
margin-bottom: 2rem;
}
.example-category h4 {
color: #34495e;
margin-bottom: 1rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid #ecf0f1;
}
.example-item {
background: #f8f9fa;
padding: 1rem;
margin-bottom: 0.8rem;
border-radius: 6px;
cursor: pointer;
transition: all 0.2s ease;
border-left: 3px solid transparent;
}
.example-item:hover {
background: #e9ecef;
border-left-color: #3498db;
transform: translateX(5px);
}
/* Error Toast */
.error-toast {
position: fixed;
top: 20px;
right: 20px;
background: #e74c3c;
color: white;
padding: 1rem 1.5rem;
border-radius: 6px;
box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
z-index: 1001;
display: flex;
align-items: center;
gap: 1rem;
max-width: 400px;
animation: slideIn 0.3s ease;
}
.close-error {
background: none;
border: none;
color: white;
font-size: 1.2rem;
cursor: pointer;
padding: 0;
}
@keyframes slideIn {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
/* Utility Classes */
.hidden {
display: none !important;
}
.text-center {
text-align: center;
}
/* Footer */
.footer {
margin-top: 2rem;
padding: 1rem;
text-align: center;
color: #7f8c8d;
font-size: 0.9rem;
border-top: 1px solid #ecf0f1;
}
/* Responsive Design */
@media (max-width: 768px) {
.container {
padding: 10px;
}
.header h1 {
font-size: 2rem;
}
.header h2 {
font-size: 1.1rem;
}
.button-container {
flex-direction: column;
}
.btn {
width: 100%;
}
.decision-banner {
flex-direction: column;
text-align: center;
gap: 0.5rem;
}
.modal-content {
width: 95%;
margin: 10px;
}
.error-toast {
right: 10px;
left: 10px;
max-width: none;
}
}
@media (max-width: 480px) {
.header {
padding: 1.5rem;
}
.input-section,
.results-section {
padding: 1.5rem;
}
.scenario-textarea {
min-height: 100px;
}
}
/* Print Styles */
@media print {
.header,
.input-section,
.footer {
display: none;
}
.results-section {
box-shadow: none;
border: 1px solid #000;
}
.decision-banner {
border: 2px solid #000 !important;
background: white !important;
color: #000 !important;
}
.rationale-text,
.citations-content {
background: white !important;
border: 1px solid #000;
}
}