xp_nix/xp_server/lib/src/web/static/style.css

580 lines
10 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
color: #333;
}
.container {
max-width: 1400px;
margin: 0 auto;
padding: 20px;
}
header {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-radius: 15px;
padding: 30px;
margin-bottom: 30px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
}
header h1 {
font-size: 2.5rem;
font-weight: 700;
background: linear-gradient(135deg, #667eea, #764ba2);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 20px;
text-align: center;
}
.header-stats {
display: flex;
justify-content: center;
gap: 30px;
flex-wrap: wrap;
}
.stat-card {
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
background: linear-gradient(135deg, #667eea, #764ba2);
border-radius: 12px;
color: white;
min-width: 120px;
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.stat-label {
font-size: 0.9rem;
opacity: 0.9;
margin-bottom: 5px;
}
.stat-value {
font-size: 2rem;
font-weight: 700;
}
.dashboard-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
gap: 25px;
}
.card {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-radius: 15px;
padding: 25px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
transform: translateY(-5px);
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
.card h2 {
font-size: 1.4rem;
margin-bottom: 20px;
color: #4a5568;
border-bottom: 2px solid #e2e8f0;
padding-bottom: 10px;
}
.progress-stats {
display: flex;
flex-direction: column;
gap: 20px;
}
.progress-item {
display: flex;
align-items: center;
gap: 15px;
}
.progress-label {
min-width: 100px;
font-weight: 600;
color: #4a5568;
}
.progress-bar {
flex: 1;
height: 8px;
background: #e2e8f0;
border-radius: 4px;
overflow: hidden;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, #667eea, #764ba2);
border-radius: 4px;
transition: width 0.5s ease;
width: 0%;
}
.progress-value {
min-width: 80px;
text-align: right;
font-weight: 600;
color: #2d3748;
}
.chart-card {
grid-column: span 2;
}
.chart-card canvas {
max-height: 300px;
}
.activity-list, .achievements-list {
max-height: 300px;
overflow-y: auto;
}
.activity-item, .achievement-item {
padding: 12px;
border-left: 4px solid #667eea;
background: #f7fafc;
margin-bottom: 10px;
border-radius: 0 8px 8px 0;
transition: background 0.2s ease;
}
.activity-item:hover, .achievement-item:hover {
background: #edf2f7;
}
.activity-type, .achievement-name {
font-weight: 600;
color: #2d3748;
}
.activity-details, .achievement-description {
font-size: 0.9rem;
color: #718096;
margin-top: 5px;
}
/* XP Breakdown Styles */
.xp-breakdown {
max-height: 300px;
overflow-y: auto;
}
.xp-source-item {
padding: 15px;
background: #f7fafc;
margin-bottom: 12px;
border-radius: 8px;
border-left: 4px solid #667eea;
transition: background 0.2s ease;
}
.xp-source-item:hover {
background: #edf2f7;
}
.xp-source-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 8px;
}
.xp-source-icon {
font-size: 1.2rem;
margin-right: 8px;
}
.xp-source-name {
font-weight: 600;
color: #2d3748;
flex: 1;
}
.xp-source-amount {
font-weight: 700;
color: #667eea;
font-size: 1.1rem;
}
.xp-source-bar {
height: 6px;
background: #e2e8f0;
border-radius: 3px;
overflow: hidden;
margin-bottom: 5px;
}
.xp-source-progress {
height: 100%;
background: linear-gradient(90deg, #667eea, #764ba2);
border-radius: 3px;
transition: width 0.5s ease;
}
.xp-source-percentage {
font-size: 0.8rem;
color: #718096;
text-align: right;
}
.config-section {
display: flex;
flex-direction: column;
gap: 15px;
}
.config-section h3 {
color: #4a5568;
margin-bottom: 10px;
}
.config-group {
display: flex;
align-items: center;
gap: 10px;
}
.config-group label {
min-width: 180px;
font-weight: 500;
color: #4a5568;
}
.config-group input {
padding: 8px 12px;
border: 2px solid #e2e8f0;
border-radius: 6px;
font-size: 1rem;
transition: border-color 0.2s ease;
width: 80px;
}
.config-group input:focus {
outline: none;
border-color: #667eea;
}
.btn-primary, .btn-secondary {
padding: 12px 24px;
border: none;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
font-size: 1rem;
}
.btn-primary {
background: linear-gradient(135deg, #667eea, #764ba2);
color: white;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
.btn-secondary {
background: #e2e8f0;
color: #4a5568;
}
.btn-secondary:hover {
background: #cbd5e0;
}
.logs-card {
grid-column: span 2;
}
.logs-controls {
display: flex;
gap: 15px;
margin-bottom: 20px;
align-items: center;
}
.logs-controls select {
padding: 8px 12px;
border: 2px solid #e2e8f0;
border-radius: 6px;
background: white;
font-size: 1rem;
}
.logs-container {
background: #1a202c;
color: #e2e8f0;
padding: 20px;
border-radius: 8px;
max-height: 400px;
overflow-y: auto;
font-family: 'Courier New', monospace;
font-size: 0.9rem;
line-height: 1.4;
}
.log-entry {
margin-bottom: 5px;
padding: 2px 0;
}
.log-entry.error {
color: #fed7d7;
background: rgba(254, 178, 178, 0.1);
padding: 4px 8px;
border-radius: 4px;
}
.log-entry.warn {
color: #faf089;
background: rgba(250, 240, 137, 0.1);
padding: 4px 8px;
border-radius: 4px;
}
.log-entry.info {
color: #90cdf4;
}
.log-entry.debug {
color: #a0aec0;
}
/* Responsive Design */
@media (max-width: 768px) {
.dashboard-grid {
grid-template-columns: 1fr;
}
.chart-card, .logs-card {
grid-column: span 1;
}
.header-stats {
gap: 15px;
}
.stat-card {
min-width: 100px;
padding: 15px;
}
.config-group {
flex-direction: column;
align-items: flex-start;
gap: 5px;
}
.config-group label {
min-width: auto;
}
}
/* Loading Animation */
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
.loading {
animation: pulse 2s infinite;
}
/* Success/Error Messages */
.message {
padding: 12px 16px;
border-radius: 8px;
margin: 10px 0;
font-weight: 500;
}
.message.success {
background: #c6f6d5;
color: #22543d;
border: 1px solid #9ae6b4;
}
.message.error {
background: #fed7d7;
color: #742a2a;
border: 1px solid #feb2b2;
}
/* Classification Styles */
.classification-card {
grid-column: span 2;
}
.classification-section {
display: flex;
flex-direction: column;
gap: 25px;
}
.classification-section h3 {
color: #4a5568;
margin-bottom: 15px;
font-size: 1.2rem;
border-bottom: 1px solid #e2e8f0;
padding-bottom: 8px;
}
.unclassified-list, .classifications-list {
max-height: 300px;
overflow-y: auto;
}
.unclassified-item, .classification-item {
padding: 15px;
background: #f7fafc;
margin-bottom: 12px;
border-radius: 8px;
border-left: 4px solid #ed8936;
transition: background 0.2s ease;
}
.classification-item {
border-left-color: #48bb78;
}
.unclassified-item:hover, .classification-item:hover {
background: #edf2f7;
}
.unclassified-header, .classification-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
flex-wrap: wrap;
gap: 10px;
}
.unclassified-name, .classification-app {
font-weight: 600;
color: #2d3748;
flex: 1;
min-width: 150px;
}
.unclassified-count, .unclassified-date {
font-size: 0.9rem;
color: #718096;
}
.classification-icon {
font-size: 1.2rem;
margin-right: 8px;
}
.classification-category {
font-weight: 500;
color: #48bb78;
background: rgba(72, 187, 120, 0.1);
padding: 4px 8px;
border-radius: 4px;
font-size: 0.9rem;
}
.classification-controls {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
}
.category-select {
padding: 8px 12px;
border: 2px solid #e2e8f0;
border-radius: 6px;
background: white;
font-size: 0.9rem;
min-width: 180px;
transition: border-color 0.2s ease;
}
.category-select:focus {
outline: none;
border-color: #667eea;
}
.btn-classify {
padding: 8px 16px;
background: linear-gradient(135deg, #667eea, #764ba2);
color: white;
border: none;
border-radius: 6px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
font-size: 0.9rem;
}
.btn-classify:hover {
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}
.btn-delete {
background: #e53e3e;
color: white;
border: none;
border-radius: 50%;
width: 24px;
height: 24px;
font-size: 1rem;
font-weight: bold;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
}
.btn-delete:hover {
background: #c53030;
transform: scale(1.1);
}
/* Scrollbar Styling */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 4px;
}
::-webkit-scrollbar-thumb {
background: #c1c1c1;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #a8a8a8;
}