Files
Gacy-Srtool/css/styles.css
T

676 lines
13 KiB
CSS

:root {
--bg-primary: #0a0d14;
--bg-secondary: #121826;
--bg-card: rgba(22, 30, 48, 0.7);
--bg-card-hover: rgba(30, 41, 66, 0.85);
--border-color: rgba(99, 120, 160, 0.25);
--border-focus: #4ef2bb;
--text-main: #f0f4fc;
--text-muted: #8e9bb5;
--text-highlight: #ffffff;
--accent-cyan: #38bdf8;
--accent-green: #34d399;
--accent-gold: #fbbf24;
--accent-purple: #a855f7;
--accent-red: #f87171;
--glow-cyan: 0 0 15px rgba(56, 189, 248, 0.35);
--glow-green: 0 0 15px rgba(52, 211, 153, 0.35);
--glow-gold: 0 0 15px rgba(251, 191, 36, 0.35);
--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
--radius-sm: 6px;
--radius-md: 10px;
--radius-lg: 16px;
--transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: var(--font-family);
background-color: var(--bg-primary);
background-image:
radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
radial-gradient(circle at 85% 85%, rgba(168, 85, 247, 0.08) 0%, transparent 45%);
color: var(--text-main);
min-height: 100vh;
display: flex;
flex-direction: column;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
/* Header */
.app-header {
position: sticky;
top: 0;
z-index: 50;
background: rgba(10, 13, 20, 0.85);
backdrop-filter: blur(14px);
border-bottom: 1px solid var(--border-color);
padding: 0.75rem 1.5rem;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
}
.brand {
display: flex;
align-items: center;
gap: 0.75rem;
}
.brand-icon {
width: 38px;
height: 38px;
border-radius: var(--radius-md);
background: linear-gradient(135deg, #38bdf8, #818cf8);
display: flex;
align-items: center;
justify-content: center;
box-shadow: var(--glow-cyan);
font-size: 1.25rem;
font-weight: bold;
color: #fff;
}
.brand-title {
font-size: 1.25rem;
font-weight: 700;
letter-spacing: -0.025em;
background: linear-gradient(90deg, #ffffff, #cbd5e1);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.brand-subtitle {
font-size: 0.75rem;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.05em;
}
.header-controls {
display: flex;
align-items: center;
gap: 0.85rem;
}
.connection-pill {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.35rem 0.75rem;
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: 9999px;
font-size: 0.8rem;
font-weight: 500;
cursor: pointer;
transition: var(--transition);
}
.connection-pill:hover {
border-color: var(--text-muted);
}
.status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background-color: var(--accent-red);
box-shadow: 0 0 8px var(--accent-red);
transition: var(--transition);
}
.status-dot.connected {
background-color: var(--accent-green);
box-shadow: var(--glow-green);
}
/* Navigation Tabs */
.nav-tabs {
display: flex;
gap: 0.5rem;
background: var(--bg-secondary);
padding: 0.5rem 1.5rem;
border-bottom: 1px solid var(--border-color);
overflow-x: auto;
}
.tab-btn {
background: transparent;
border: none;
color: var(--text-muted);
padding: 0.5rem 1rem;
border-radius: var(--radius-sm);
font-size: 0.875rem;
font-weight: 600;
cursor: pointer;
display: flex;
align-items: center;
gap: 0.5rem;
white-space: nowrap;
transition: var(--transition);
}
.tab-btn:hover {
color: var(--text-main);
background: rgba(255, 255, 255, 0.04);
}
.tab-btn.active {
color: #fff;
background: rgba(56, 189, 248, 0.15);
border: 1px solid rgba(56, 189, 248, 0.3);
box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
}
/* Container */
.main-container {
flex: 1;
padding: 1.5rem;
max-width: 1300px;
width: 100%;
margin: 0 auto;
}
.tab-content {
display: none;
animation: fadeIn 0.25s ease-out;
}
.tab-content.active {
display: block;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(6px); }
to { opacity: 1; transform: translateY(0); }
}
/* Cards & Grid */
.grid-2 {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 1.25rem;
}
.grid-3 {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1.25rem;
}
.grid-4 {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
gap: 1.1rem;
}
.card {
background: var(--bg-card);
backdrop-filter: blur(12px);
border: 1px solid var(--border-color);
border-radius: var(--radius-lg);
padding: 1.25rem;
transition: var(--transition);
position: relative;
overflow: hidden;
}
.card:hover {
background: var(--bg-card-hover);
border-color: rgba(99, 120, 160, 0.45);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.card-title {
font-size: 1.05rem;
font-weight: 700;
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 0.85rem;
color: var(--text-highlight);
}
.card-subtitle {
font-size: 0.8rem;
color: var(--text-muted);
margin-bottom: 1rem;
}
/* Stat Box */
.stat-box {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.stat-number {
font-size: 2rem;
font-weight: 800;
color: var(--accent-cyan);
line-height: 1;
}
.stat-label {
font-size: 0.8rem;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.05em;
}
/* Buttons */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
padding: 0.6rem 1.1rem;
border-radius: var(--radius-sm);
font-size: 0.875rem;
font-weight: 600;
cursor: pointer;
border: 1px solid transparent;
transition: var(--transition);
text-decoration: none;
}
.btn-primary {
background: linear-gradient(135deg, #0284c7, #2563eb);
color: #fff;
border-color: rgba(56, 189, 248, 0.4);
}
.btn-primary:hover {
box-shadow: var(--glow-cyan);
filter: brightness(1.1);
}
.btn-success {
background: linear-gradient(135deg, #059669, #10b981);
color: #fff;
border-color: rgba(52, 211, 153, 0.4);
}
.btn-success:hover {
box-shadow: var(--glow-green);
filter: brightness(1.1);
}
.btn-gold {
background: linear-gradient(135deg, #d97706, #f59e0b);
color: #fff;
border-color: rgba(251, 191, 36, 0.4);
}
.btn-gold:hover {
box-shadow: var(--glow-gold);
filter: brightness(1.1);
}
.btn-secondary {
background: rgba(255, 255, 255, 0.06);
color: var(--text-main);
border-color: var(--border-color);
}
.btn-secondary:hover {
background: rgba(255, 255, 255, 0.12);
border-color: var(--text-muted);
}
.btn-sm {
padding: 0.35rem 0.65rem;
font-size: 0.775rem;
}
/* Avatar Card */
.avatar-card {
display: flex;
flex-direction: column;
justify-content: space-between;
min-height: 180px;
position: relative;
}
.avatar-badge-rarity {
position: absolute;
top: 1rem;
right: 1rem;
font-size: 0.75rem;
padding: 0.15rem 0.5rem;
border-radius: var(--radius-sm);
font-weight: 700;
}
.rarity-5 {
background: rgba(251, 191, 36, 0.2);
border: 1px solid rgba(251, 191, 36, 0.5);
color: var(--accent-gold);
}
.rarity-4 {
background: rgba(168, 85, 247, 0.2);
border: 1px solid rgba(168, 85, 247, 0.5);
color: var(--accent-purple);
}
.avatar-header-info {
display: flex;
gap: 0.85rem;
align-items: center;
}
.avatar-image-container {
position: relative;
width: 52px;
height: 52px;
border-radius: var(--radius-md);
overflow: hidden;
background: var(--bg-secondary);
border: 1px solid var(--border-color);
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
}
.avatar-img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.25s ease;
}
.card:hover .avatar-img {
transform: scale(1.08);
}
.avatar-icon-placeholder {
width: 100%;
height: 100%;
background: var(--bg-secondary);
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 1.1rem;
}
.avatar-name {
font-size: 1rem;
font-weight: 700;
color: var(--text-highlight);
}
.avatar-subinfo {
font-size: 0.75rem;
color: var(--text-muted);
display: flex;
gap: 0.5rem;
}
.eidolon-selector {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 1rem;
background: rgba(0, 0, 0, 0.2);
padding: 0.5rem 0.75rem;
border-radius: var(--radius-sm);
border: 1px solid var(--border-color);
}
.eidolon-buttons {
display: flex;
gap: 0.25rem;
}
.eidolon-pip {
width: 24px;
height: 24px;
border-radius: 4px;
border: 1px solid var(--border-color);
background: transparent;
color: var(--text-muted);
font-size: 0.75rem;
font-weight: bold;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: var(--transition);
}
.eidolon-pip:hover {
border-color: var(--accent-cyan);
color: var(--text-main);
}
.eidolon-pip.active {
background: var(--accent-cyan);
border-color: var(--accent-cyan);
color: #0b0d14;
box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}
/* Ex Rank Toggle Switch */
.ex-switch-card {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem;
background: var(--bg-card);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
margin-bottom: 0.75rem;
transition: var(--transition);
}
.ex-switch-card:hover {
background: var(--bg-card-hover);
}
.switch {
position: relative;
display: inline-block;
width: 48px;
height: 26px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0; left: 0; right: 0; bottom: 0;
background-color: #374151;
transition: .3s;
border-radius: 34px;
}
.slider:before {
position: absolute;
content: "";
height: 18px;
width: 18px;
left: 4px;
bottom: 4px;
background-color: white;
transition: .3s;
border-radius: 50%;
}
input:checked + .slider {
background-color: var(--accent-green);
box-shadow: var(--glow-green);
}
input:checked + .slider:before {
transform: translateX(22px);
}
/* Inputs & Form */
.form-group {
margin-bottom: 1rem;
}
.form-label {
display: block;
font-size: 0.8rem;
font-weight: 600;
color: var(--text-muted);
margin-bottom: 0.35rem;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.form-input, .form-select {
width: 100%;
padding: 0.6rem 0.85rem;
background: rgba(10, 13, 20, 0.7);
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
color: var(--text-main);
font-size: 0.9rem;
outline: none;
transition: var(--transition);
}
.form-input:focus, .form-select:focus {
border-color: var(--accent-cyan);
box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}
/* JSON Code Editor Area */
.json-editor-wrapper {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.json-textarea {
width: 100%;
height: 480px;
padding: 1rem;
font-family: "Fira Code", Consolas, "Courier New", monospace;
font-size: 0.85rem;
background: #07090e;
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
color: #38bdf8;
resize: vertical;
line-height: 1.4;
outline: none;
}
.json-textarea:focus {
border-color: var(--accent-cyan);
}
/* Toast notifications */
.toast-container {
position: fixed;
bottom: 1.5rem;
right: 1.5rem;
display: flex;
flex-direction: column;
gap: 0.75rem;
z-index: 1000;
pointer-events: none;
}
.toast {
pointer-events: auto;
min-width: 280px;
max-width: 420px;
padding: 0.85rem 1.15rem;
border-radius: var(--radius-md);
background: rgba(18, 24, 38, 0.95);
backdrop-filter: blur(14px);
border: 1px solid var(--border-color);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
font-size: 0.875rem;
color: var(--text-main);
display: flex;
align-items: center;
gap: 0.75rem;
animation: slideInRight 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.success { border-left: 4px solid var(--accent-green); }
.toast.error { border-left: 4px solid var(--accent-red); }
.toast.info { border-left: 4px solid var(--accent-cyan); }
@keyframes slideInRight {
from { transform: translateX(100%); opacity: 0; }
to { transform: translateX(0); opacity: 1; }
}
/* Modal */
.modal-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(6px);
display: none;
align-items: center;
justify-content: center;
z-index: 999;
padding: 1rem;
}
.modal-overlay.active {
display: flex;
}
.modal-content {
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: var(--radius-lg);
max-width: 560px;
width: 100%;
padding: 1.5rem;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.25rem;
}
/* Responsive */
@media (max-width: 768px) {
.app-header {
flex-direction: column;
align-items: flex-start;
}
.header-controls {
width: 100%;
justify-content: space-between;
}
.nav-tabs {
padding: 0.5rem 1rem;
}
.main-container {
padding: 1rem;
}
}