Spaces:
Sleeping
Sleeping
File size: 2,783 Bytes
944bf22 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 |
/* ---------- BASE ---------- */
body {
font-family: Arial, Helvetica, sans-serif;
background: linear-gradient(135deg, #667eea, #764ba2);
margin: 0;
padding: 0;
color: #333;
transition: all 0.3s ease;
}
.container {
max-width: 900px;
margin: 50px auto;
background: #ffffff;
padding: 30px;
border-radius: 14px;
box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
/* ---------- TOP BAR ---------- */
.top-bar {
display: flex;
justify-content: space-between;
align-items: center;
}
.toggle-btn {
border: none;
background: #eee;
padding: 8px 14px;
border-radius: 20px;
cursor: pointer;
font-size: 16px;
}
/* ---------- TEXT ---------- */
.subtitle {
text-align: center;
color: #555;
margin-bottom: 25px;
}
/* ---------- FORM ---------- */
form {
display: flex;
gap: 10px;
margin-bottom: 20px;
}
input[type="text"] {
flex: 1;
padding: 12px;
border-radius: 8px;
border: 1px solid #ccc;
font-size: 15px;
}
button {
padding: 12px 22px;
border: none;
border-radius: 8px;
background: #667eea;
color: #fff;
font-size: 15px;
cursor: pointer;
}
button:hover {
background: #5a67d8;
}
/* ---------- LOADER ---------- */
.loader {
display: none;
text-align: center;
margin: 30px 0;
font-weight: bold;
color: #667eea;
}
.spinner {
width: 42px;
height: 42px;
border: 4px solid #ddd;
border-top: 4px solid #667eea;
border-radius: 50%;
margin: 10px auto;
animation: spin 1s linear infinite;
}
@keyframes spin {
100% { transform: rotate(360deg); }
}
/* ---------- OUTPUT ---------- */
.output {
margin-top: 30px;
}
pre {
background: #f7f7f7;
padding: 20px;
border-radius: 10px;
white-space: pre-wrap;
line-height: 1.7;
}
/* ---------- ERROR ---------- */
.error {
color: red;
font-weight: bold;
margin-top: 15px;
}
/* ================= DARK MODE ================= */
body.dark {
background: linear-gradient(135deg, #111827, #1f2933);
color: #e5e7eb;
}
body.dark .container {
background: #1f2933;
}
body.dark .subtitle {
color: #9ca3af;
}
body.dark input[type="text"] {
background: #111827;
color: #e5e7eb;
border: 1px solid #374151;
}
body.dark button {
background: #2563eb;
}
body.dark button:hover {
background: #1d4ed8;
}
body.dark .toggle-btn {
background: #374151;
color: #e5e7eb;
}
body.dark pre {
background: #111827;
color: #e5e7eb;
}
body.dark .spinner {
border: 4px solid #374151;
border-top: 4px solid #2563eb;
}
|