Files

274 lines
5.0 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Outfit', 'Segoe UI', sans-serif;
}
body {
background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
background-attachment: fixed;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 20px;
color: #333;
}
.container {
background-color: rgba(255, 255, 255, 0.75);
backdrop-filter: blur(15px);
-webkit-backdrop-filter: blur(15px);
border-radius: 24px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
width: 100%;
max-width: 600px;
padding: 50px 40px;
text-align: center;
border: 1px solid rgba(255, 255, 255, 0.4);
}
h1 {
color: #2c3e50;
margin-bottom: 10px;
font-size: 2.2rem;
}
.subtitle {
color: #7f8c8d;
margin-bottom: 30px;
font-size: 1.1rem;
}
.status-panel {
background-color: #f8f9fa;
border-radius: 15px;
padding: 25px;
margin-bottom: 30px;
border: 2px solid #e0e0e0;
text-align: center;
}
.status-title {
font-weight: 600;
color: #555;
margin-bottom: 15px;
font-size: 1.1rem;
}
.status-indicator {
display: inline-flex;
align-items: center;
padding: 12px 25px;
border-radius: 50px;
font-weight: 700;
font-size: 1.3rem;
margin-bottom: 15px;
}
.status-on {
background-color: rgba(46, 204, 113, 0.15);
color: #27ae60;
border: 2px solid #2ecc71;
}
.status-off {
background-color: rgba(231, 76, 60, 0.15);
color: #c0392b;
border: 2px solid #e74c3c;
}
.status-loading {
background-color: rgba(52, 152, 219, 0.15);
color: #2980b9;
border: 2px solid #3498db;
}
.status-disabled {
background-color: rgba(149, 165, 166, 0.15);
color: #7f8c8d;
border: 2px solid #95a5a6;
}
.status-indicator i {
margin-right: 10px;
font-size: 1.5rem;
}
.status-info {
font-size: 0.9rem;
color: #666;
line-height: 1.5;
}
.controls {
display: flex;
justify-content: center;
gap: 20px;
margin-bottom: 30px;
}
.btn {
padding: 18px 30px;
font-size: 1.2rem;
font-weight: 600;
border: none;
border-radius: 12px;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
min-width: 180px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.btn:active {
transform: translateY(2px);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.btn-enabled {
opacity: 1;
}
.btn-disabled {
opacity: 0.6;
cursor: not-allowed;
pointer-events: none;
user-select: none;
}
.btn-on {
background-color: #2ecc71;
color: white;
}
.btn:hover:not(.btn-disabled) {
background-color: #27ae60;
box-shadow: 0 8px 20px rgba(46, 204, 113, 0.4);
transform: translateY(-3px) scale(1.02);
}
.btn-off {
background-color: #e74c3c;
color: white;
}
.btn-off:hover:not(.btn-disabled) {
background-color: #c0392b;
box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4);
transform: translateY(-3px) scale(1.02);
}
.btn i {
margin-right: 10px;
font-size: 1.4rem;
}
.notification {
background-color: rgba(255, 255, 255, 0.4);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border-radius: 12px;
padding: 15px 20px;
margin-top: 20px;
text-align: left;
border-left: 4px solid #3498db;
transition: all 0.3s ease;
display: none;
border: 1px solid rgba(255, 255, 255, 0.3);
border-left-width: 4px;
}
.notification h3 {
color: #2c3e50;
margin-bottom: 15px;
display: flex;
align-items: center;
}
.notification h3 i {
margin-right: 10px;
}
.notification-message {
font-size: 1rem;
line-height: 1.5;
color: #555;
}
.notification-error {
border-left-color: rgba(231, 76, 60, 0.5);
background-color: rgba(231, 76, 60, 0.08);
}
.notification-success {
border-left-color: rgba(46, 204, 113, 0.5);
background-color: rgba(46, 204, 113, 0.08);
}
.notification-warning {
border-left-color: rgba(243, 156, 18, 0.5);
background-color: rgba(243, 156, 18, 0.08);
}
.loading {
display: inline-block;
width: 20px;
height: 20px;
border: 3px solid rgba(52, 152, 219, 0.3);
border-radius: 50%;
border-top-color: #3498db;
animation: spin 1s ease-in-out infinite;
margin-right: 10px;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.api-info {
background-color: rgba(241, 248, 255, 0.6);
backdrop-filter: blur(5px);
border-radius: 12px;
padding: 20px;
margin-top: 30px;
font-size: 0.95rem;
color: #4a5a6a;
text-align: left;
border: 1px solid rgba(52, 152, 219, 0.2);
}
.api-info strong {
color: #2c3e50;
}
.api-info ul {
padding-left: 20px;
margin-top: 8px;
}
.api-info li {
margin-bottom: 5px;
}
@media (max-width: 650px) {
.container {
padding: 30px 20px;
}
.controls {
flex-direction: column;
align-items: center;
}
.btn {
width: 100%;
max-width: 250px;
}
}