XIVLauncherRemoteOTP/static/style.css

691 lines
15 KiB
CSS

:root {
--bg-color: #e3e2e1;
--card-bg: #fcfcfc;
--primary: #2b7bc4;
--primary-hover: #3daee9;
--text-main: #232629;
--text-muted: #5f6265;
--border-color: #bcbcbc;
--status-online: #2ecc71;
--status-offline: #e74c3c;
--status-sent: #2b7bc4;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
background-color: var(--bg-color);
color: var(--text-main);
line-height: 1.5;
-webkit-font-smoothing: antialiased;
padding-bottom: 3rem;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 2rem 1.5rem;
}
/* Header styled as a desktop panel */
header {
background: linear-gradient(to bottom, #f5f5f5 0%, #e1e1e0 100%);
border: 1px solid #acacac;
border-radius: 6px;
padding: 0.75rem 1.25rem;
margin-bottom: 2rem;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: inset 0 1px 0 #ffffff, 0 1px 3px rgba(0,0,0,0.08);
}
.logo {
display: flex;
align-items: center;
gap: 0.75rem;
}
.logo h1 {
font-size: 1.25rem;
font-weight: 600;
color: #232629;
text-shadow: 0 1px 0 #ffffff;
}
.header-actions {
display: flex;
gap: 0.5rem;
}
/* Nav styled as classic Oxygen folder tabs */
.main-nav {
display: flex;
gap: 0.25rem;
margin-bottom: 1.5rem;
border-bottom: 1px solid var(--border-color);
padding-bottom: 0;
padding-left: 0.5rem;
}
.nav-item {
background: linear-gradient(to bottom, #eaeaea 0%, #dcdcdc 100%);
border: 1px solid var(--border-color);
border-bottom: none;
color: var(--text-muted);
font-size: 0.85rem;
font-weight: 600;
cursor: pointer;
padding: 0.5rem 1.25rem;
border-radius: 5px 5px 0 0;
position: relative;
top: 1px;
transition: all 0.15s ease-in-out;
box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}
.nav-item:hover {
color: var(--text-main);
background: linear-gradient(to bottom, #fafafa 0%, #e2e2e2 100%);
}
.nav-item.active {
color: #2b7bc4;
background: #fcfcfc;
border-bottom: 1px solid #fcfcfc;
box-shadow: inset 0 1px 0 rgba(255,255,255,1);
top: 2px;
z-index: 2;
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
/* Cards styled as native program groupboxes */
.card {
background-color: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: 6px;
padding: 1.5rem;
margin-bottom: 2rem;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255,255,255,0.9);
}
.card h2 {
font-size: 1.15rem;
margin-bottom: 1.25rem;
font-weight: 600;
color: #232629;
border-bottom: 1px solid #dcdcdc;
padding-bottom: 0.5rem;
text-shadow: 0 1px 0 #ffffff;
}
/* Oxygen Button styling */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.5rem 1.25rem;
font-weight: 500;
font-size: 0.9rem;
border-radius: 5px;
cursor: pointer;
border: 1px solid #a8a8a8;
background: linear-gradient(to bottom, #fcfcfc 0%, #e0e0e0 40%, #d5d5d5 100%);
color: #232629;
box-shadow: 0 1px 2px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.7);
transition: all 0.15s ease-in-out;
font-family: inherit;
text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}
.btn:hover {
border-color: #3daee9;
background: linear-gradient(to bottom, #ffffff 0%, #ebf5fb 40%, #d6eaf8 100%);
box-shadow: 0 1px 4px rgba(61, 174, 233, 0.25), inset 0 1px 0 rgba(255,255,255,0.9);
}
.btn:active {
background: linear-gradient(to bottom, #d5d5d5 0%, #e5e5e5 100%);
box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
transform: translateY(0.5px);
}
.btn-primary {
background: linear-gradient(to bottom, #73b9e5 0%, #2e8bdc 40%, #1c6fae 100%);
border-color: #1a5e95;
color: #ffffff;
text-shadow: 0 -1px 0 rgba(0,0,0,0.25);
box-shadow: 0 1px 2px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-primary:hover {
background: linear-gradient(to bottom, #89c7eb 0%, #3daee9 40%, #2184be 100%);
border-color: #1a5e95;
color: #ffffff;
box-shadow: 0 1px 4px rgba(61, 174, 233, 0.35), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-primary:active {
background: linear-gradient(to bottom, #1c6fae 0%, #2e8bdc 100%);
box-shadow: inset 0 1px 4px rgba(0,0,0,0.3);
}
.btn-secondary {
background: linear-gradient(to bottom, #fafafa 0%, #e5e7eb 40%, #d1d5db 100%);
border-color: #9ca3af;
}
.btn-icon {
padding: 0.45rem;
border-radius: 5px;
border: 1px solid transparent;
background: transparent;
box-shadow: none;
}
.btn-icon:hover {
border-color: #b0b0b0;
background: linear-gradient(to bottom, #ffffff 0%, #eaeaea 100%);
}
.btn-sm {
padding: 0.35rem 0.75rem;
font-size: 0.8rem;
}
/* Form inputs with 3D inset shadows */
.form-group {
margin-bottom: 1.25rem;
}
.form-row {
display: flex;
gap: 1rem;
}
.form-row .form-group {
flex: 1;
}
label {
display: block;
font-size: 0.85rem;
color: var(--text-muted);
margin-bottom: 0.375rem;
font-weight: 600;
}
input, select {
width: 100%;
background-color: #ffffff;
border: 1px solid #b8b8b8;
color: #232629;
padding: 0.55rem 0.75rem;
border-radius: 4px;
font-family: inherit;
font-size: 0.95rem;
box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.12);
transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus {
outline: none;
border-color: #3daee9;
box-shadow: 0 0 5px rgba(61, 174, 233, 0.6), inset 1px 1px 2px rgba(0, 0, 0, 0.1);
}
.divider {
height: 1px;
background-color: #dcdcdc;
margin: 1.5rem 0;
}
/* Modals styled as native windows */
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.4);
z-index: 2000;
justify-content: center;
align-items: center;
padding: 1rem;
}
.modal.active {
display: flex;
}
.modal-content {
background-color: var(--card-bg);
border: 1px solid #909090;
border-radius: 6px;
box-shadow: 0 10px 40px rgba(0,0,0,0.25), inset 0 1px 0 #ffffff;
overflow: hidden;
padding: 0;
width: 100%;
max-width: 500px;
}
.modal-header {
background: linear-gradient(to bottom, #eff2f5 0%, #dcdfe3 100%);
border-bottom: 1px solid #b0b0b0;
padding: 0.75rem 1.25rem;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: inset 0 1px 0 #ffffff;
}
.modal-header h2 {
font-size: 1.05rem;
font-weight: 600;
color: #232629;
margin: 0;
text-shadow: 0 1px 0 #ffffff;
border-bottom: none;
padding-bottom: 0;
}
/* Styled close button as red Oxygen ball window close */
.btn-close {
width: 18px;
height: 18px;
background: radial-gradient(cx 30%, cy 30%, #ff8888 0%, #ef4444 60%, #cc0000 100%);
border: 1px solid #990000;
border-radius: 50%;
color: transparent;
cursor: pointer;
position: relative;
box-shadow: 0 1px 2px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-close:hover {
background: radial-gradient(cx 30%, cy 30%, #ffaaaa 0%, #ff4d4d 60%, #e60000 100%);
}
.btn-close::before, .btn-close::after {
content: '';
position: absolute;
width: 8px;
height: 2px;
background-color: white;
top: 7px;
left: 4px;
}
.btn-close::before { transform: rotate(45deg); }
.btn-close::after { transform: rotate(-45deg); }
.modal-content form {
padding: 1.5rem;
}
.modal-content .helper-text {
padding: 1.25rem 1.5rem 0 1.5rem;
margin-bottom: 0;
}
.modal-content .code-block {
margin: 1rem 1.5rem;
}
/* User management / lists items */
.instances-list, .otp-secrets-list, .users-list {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.instance-item, .otp-secret-item, .user-item {
background: linear-gradient(to bottom, #fbfbfb 0%, #f1f1f1 100%);
border: 1px solid #cfcfcf;
border-radius: 5px;
padding: 0.875rem 1.25rem;
display: flex;
justify-content: space-between;
align-items: center;
transition: all 0.2s ease-in-out;
box-shadow: inset 0 1px 0 #ffffff;
}
.instance-item:hover, .otp-secret-item:hover, .user-item:hover {
border-color: #3daee9;
background: linear-gradient(to bottom, #f2f9fe 0%, #e1f0fa 100%);
box-shadow: 0 1px 4px rgba(61, 174, 233, 0.15), inset 0 1px 0 #ffffff;
}
.instance-info h3, .otp-secret-info h3, .user-info h3 {
font-size: 0.95rem;
font-weight: 600;
color: #232629;
}
.instance-meta {
font-size: 0.8rem;
color: var(--text-muted);
display: flex;
gap: 1rem;
margin-top: 0.25rem;
flex-wrap: wrap;
}
.instance-actions, .otp-secret-actions, .user-actions {
display: flex;
gap: 0.375rem;
}
/* Badges */
.status-badge {
display: inline-flex;
align-items: center;
gap: 0.375rem;
font-size: 0.7rem;
font-weight: 700;
padding: 0.15rem 0.5rem;
border-radius: 4px;
background-color: #e2e8f0;
border: 1px solid #cbd5e1;
color: #475569;
}
.status-badge::before {
content: '';
width: 6px;
height: 6px;
border-radius: 50%;
}
.status-badge.status-offline {
background-color: #fee2e2;
border-color: #fca5a5;
color: #991b1b;
}
.status-badge.status-offline::before { background-color: var(--status-offline); }
.status-badge.status-sent {
background-color: #dbeafe;
border-color: #93c5fd;
color: #1e40af;
}
.status-badge.status-sent::before { background-color: var(--status-sent); }
.status-badge.status-unknown::before { background-color: var(--text-muted); }
/* Firewall Help Modal Code Blocks */
.code-block {
background-color: #fafafa;
border: 1px solid #bcbcbc;
border-radius: 4px;
padding: 0.75rem 1rem;
margin-bottom: 0.75rem;
box-shadow: inset 1px 1px 2px rgba(0,0,0,0.05);
}
.code-label {
font-size: 0.7rem;
color: var(--text-muted);
text-transform: uppercase;
font-weight: 700;
margin-bottom: 0.25rem;
}
.code-wrapper {
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
}
.code-block code {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
font-size: 0.8rem;
color: #2b7bc4;
word-break: break-all;
}
/* Login Screen */
.login-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: var(--bg-color);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
}
.login-card {
background-color: var(--card-bg);
border: 1px solid #909090;
border-radius: 6px;
width: 100%;
max-width: 400px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 #ffffff;
overflow: hidden;
padding: 0;
}
.login-card .logo {
background: linear-gradient(to bottom, #eff2f5 0%, #dcdfe3 100%);
border-bottom: 1px solid #b0b0b0;
padding: 0.85rem 1.5rem;
display: flex;
align-items: center;
gap: 0.75rem;
box-shadow: inset 0 1px 0 #ffffff;
}
.login-card .logo h2 {
font-size: 1.1rem;
font-weight: 600;
color: #232629;
text-shadow: 0 1px 0 #ffffff;
}
.login-card form {
padding: 1.5rem 1.5rem 0 1.5rem;
}
.login-card .login-firewall-section {
padding: 0 1.5rem 1.5rem 1.5rem;
}
.login-error {
color: var(--status-offline);
font-size: 0.85rem;
margin-top: 1rem;
text-align: center;
font-weight: 600;
}
/* Konsole-styled System Logs Panel */
.logs-toggle-container {
margin-top: 2rem;
margin-bottom: 1rem;
display: flex;
justify-content: flex-end;
}
/* Styled switch checkbox */
.switch-container {
display: inline-flex;
align-items: center;
gap: 0.5rem;
cursor: pointer;
}
.switch-container input {
display: none;
}
.switch-slider {
position: relative;
width: 36px;
height: 20px;
background-color: #bdc3c7;
border-radius: 10px;
transition: background-color 0.2s;
border: 1px solid #a8a8a8;
}
.switch-slider::before {
content: "";
position: absolute;
left: 2px;
top: 2px;
width: 14px;
height: 14px;
border-radius: 50%;
background-color: white;
transition: transform 0.2s;
box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.switch-container input:checked + .switch-slider {
background-color: #3daee9;
border-color: #2b7bc4;
}
.switch-container input:checked + .switch-slider::before {
transform: translateX(16px);
}
.switch-label {
font-size: 0.8rem;
color: var(--text-muted);
font-weight: 600;
}
.logs-card {
background-color: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: 6px;
padding: 0;
margin-top: 1rem;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
overflow: hidden;
}
.logs-header {
background: linear-gradient(to bottom, #eff2f5 0%, #dcdfe3 100%);
border-bottom: 1px solid #b0b0b0;
padding: 0.5rem 1rem;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: inset 0 1px 0 #ffffff;
}
.logs-header h3 {
font-size: 0.9rem;
font-weight: 600;
color: #232629;
text-shadow: 0 1px 0 #ffffff;
}
.logs-viewer {
background-color: #151515;
border: none;
border-radius: 0;
padding: 0.75rem 1rem;
height: 220px;
overflow-y: auto;
font-family: 'Source Code Pro', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: 0.75rem;
line-height: 1.5;
color: #f0f0f0;
}
.logs-viewer::-webkit-scrollbar {
width: 10px;
}
.logs-viewer::-webkit-scrollbar-track {
background: #1e1e1e;
}
.logs-viewer::-webkit-scrollbar-thumb {
background: #4a4a4a;
border: 2px solid #1e1e1e;
border-radius: 5px;
}
.logs-viewer::-webkit-scrollbar-thumb:hover {
background: #606060;
}
.log-entry {
margin-bottom: 0.25rem;
word-break: break-all;
white-space: pre-wrap;
border-bottom: 1px solid #252525;
padding-bottom: 0.25rem;
}
.log-entry:last-child {
border-bottom: none;
}
.log-time {
color: #7f8c8d;
margin-right: 0.5rem;
}
.log-level {
font-weight: 700;
margin-right: 0.5rem;
}
.log-level-info {
color: #00a2e8;
}
.log-level-warning {
color: #ffc90e;
}
.log-level-error {
color: #ed1c24;
}
.log-message {
color: #e4e4e4;
}
/* Helpers */
.helper-text {
font-size: 0.8rem;
color: var(--text-muted);
margin-bottom: 0.75rem;
}
.empty-state {
text-align: center;
padding: 2.5rem;
color: var(--text-muted);
font-style: italic;
font-size: 0.9rem;
}
.success-msg {
color: var(--status-online);
font-weight: 600;
text-align: center;
margin-top: 1rem;
font-size: 0.85rem;
}