SpectralVPN/Frontend/Styles/control-panel.css
2026-03-14 23:03:33 +03:00

301 lines
No EOL
5.1 KiB
CSS

:root{
--bg: #000;
--card: #111;
--text: #e0e0e0;
--accent: cyan;
--border: #333;
}
*{margin: 0; padding: 0; box-sizing: border-box;}
body{background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; min-height: 100vh;}
.container{max-width: 800px; margin: 0 auto; padding: 20px;}
header{
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 0;
border-bottom: 1px solid #333;
margin-bottom: 40px;
flex-wrap: wrap;
}
header h2 {font-size: 24pt;}
header h2 b {color: var(--accent);}
.user-info{
display: flex;
align-items: center;
gap: 15px;
font-size: 14pt;
}
#logoutBtn{
background: transparent;
border: 1px solid var(--accent);
color: var(--accent);
padding: 8px 16px;
border-radius: 8px;
cursor: pointer;
transition: 0.3s;
}
#logoutBtn:hover{
background: var(--accent);
color: #000;
}
h1{
font-size: 28pt;
margin-bottom: 30px;
text-align: center;
}
.urls-list{
display: grid;
gap: 15px;
margin-bottom: 30px;
}
.url-card{
background: var(--card);
border: 1px solid #333;
border-radius: 12px;
padding: 20px;
display: flex;
justify-content: space-between;
align-items: center;
transition: 0.3s;
}
.url-card:hover{
border-color: var(--accent);
box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}
.url-name{
font-weight: 600;
color: var(--accent);
}
.url-actions{
display: flex;
gap: 10px;
}
.btn-copy, .btn-delete{
padding: 8px 16px;
border-radius: 8px;
cursor: pointer;
font-weight: 600;
transition: 0.3s;
}
.btn-copy{
background: transparent;
border: 1px solid var(--accent);
color: var(--accent);
}
.btn-copy:hover{
background: var(--accent);
color: #000;
}
.btn-delete{
background: #330000;
border: 1px solid #800;
color: #f88;
}
.btn-delete:hover{
background: #800;
color: white;
}
.add-btn{
width: 100%;
padding: 16px;
background: transparent;
border: 2px dashed var(--accent);
color: var(--accent);
font-size: 16pt;
border-radius: 12px;
cursor: pointer;
transition:hover{
background: rgba(0, 255, 255, 0.1);
}
}
.modal{
display: none;
position: fixed;
top: 0; left: 0; width: 100%; height: 100%;
background: rgba(0,0,0,0.8);
justify-content: center;
align-items: center;
z-index: 1000;
}
.modal.active{display: flex;}
.modal-content{
background: #111;
padding: 30px;
border-radius: 16px;
width: 90%;
max-width: 400px;
border: 1px solid var(--accent);
text-align: center;
}
.modal-content input{
width: 100%;
padding: 14px;
margin: 10px 0;
background: #222;
border: 1px solid #444;
border-radius: 10px;
color: white;
}
.modal-content .error{
color: #ff6b6b;
margin: 10px 0;
min-height: 20px;
}
.buttons{
display: flex;
gap: 10px;
margin-top: 20px;
}
.buttons button{
flex: 1;
padding: 12px;
border-radius: 10px;
cursor: pointer;
}
#loginSubmit{
background: var(--accent);
color: black;
border: none;
}
#closeModal{
background: transparent;
border: 1px solid #666;
color: #aaa;
}
.how-to-connect{
margin-bottom: 60px;
}
.platform-tabs{
display: flex;
justify-content: center;
gap: 12px;
margin-bottom: 32px;
flex-wrap: wrap;
}
.tab-btn{
background: #1a1a1a;
border: 1px solid #444;
color: #aaa;
padding: 12px 24px;
border-radius: 50px;
font-size: 15px;
font-weight: 500;
cursor: pointer;
transition: all 0.22s ease;
}
.tab-btn:hover{
border-color: #666;
color: #ddd;
background: #222;
}
.tab-btn.active{
background: var(--accent);
color: #000;
border-color: var(--accent);
box-shadow: 0 0 20px rgba(0, 255, 255, 0.25);
font-weight: 600;
}
.instructions{
background: var(--card);
border: 1px solid #333;
border-radius: 16px;
padding: 28px 32px;
transition: all 0.3s ease;
}
.instructions ol{
counter-reset: step;
list-style: none;
font-size: 15.5px;
line-height: 1.65;
}
.instructions li{
position: relative;
padding-left: 38px;
margin-bottom: 18px;
}
.instructions li::before{
content: counter(step);
counter-increment: step;
position: absolute;
left: 0;
top: 2px;
width: 28px;
height: 28px;
background: #222;
border: 1px solid var(--accent);
color: var(--accent);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
font-weight: 600;
}
.instructions a{
color: var(--accent);
text-decoration: none;
border-bottom: 1px solid rgba(0,255,255,0.3);
transition: all 0.2s;
}
.instructions a:hover{
border-bottom-color: var(--accent);
color: #00ffff;
}
.instructions kbd{
background: #1e1e1e;
border: 1px solid #444;
border-radius: 5px;
padding: 3px 7px;
font-family: monospace;
color: #aaa;
}
.instructions ul{
margin: 12px 0 12px 24px;
list-style: disc;
color: #bbb;
}
.hidden{
display: none !important;
}