Serial2Format/public/css/main.css

129 lines
2.2 KiB
CSS

body {
font-family: 'Roboto', sans-serif;
padding-top: 50px;
background: linear-gradient(135deg, #f0f4f8, #e0e7ff);
transition: background 0.3s ease;
min-height: 100vh;
}
.dark-mode {
background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
}
.container {
max-width: 720px;
background-color: #fff;
padding: 30px;
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: background-color 0.3s ease;
}
.dark-mode .container {
background-color: #1e1e1e;
box-shadow: none;
}
h1 {
font-size: 2rem;
font-weight: 500;
color: #424242;
text-align: center;
transition: color 0.3s ease;
}
.dark-mode h1 {
color: #e0e0e0;
}
label {
font-size: 1.1rem;
color: #424242;
transition: color 0.3s ease;
}
.dark-mode label {
color: #e0e0e0;
}
textarea, select {
font-size: 1rem;
padding: 10px;
border: 1px solid #d1d9e6;
background-color: #fff;
color: #333;
transition: background-color 0.3s ease, color 0.3s ease;
}
.dark-mode textarea, .dark-mode select {
background-color: #2c2c2c;
color: #e0e0e0;
border: 1px solid #555;
}
button {
font-size: 1.2rem;
padding: 12px;
background-color: #6200ea;
border: none;
border-radius: 5px;
color: white;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #3700b3;
}
button:disabled {
background-color: #bbb;
cursor: not-allowed;
}
.spinner-border {
display: none;
width: 1rem;
height: 1rem;
}
.loading .spinner-border {
display: inline-block;
}
.output-container {
background-color: #f0f4f8;
padding: 15px;
border-radius: 5px;
border: 1px solid #d1d9e6;
margin-top: 20px;
transition: background-color 0.3s ease, border-color 0.3s ease;
}
.dark-mode .output-container {
background-color: #2c2c2c;
border-color: #555;
}
.text-success {
color: #2e7d32;
}
.text-danger {
color: #c62828;
}
.switch-container {
display: flex;
justify-content: flex-end;
margin-top: -10px;
margin-bottom: 10px;
}
.dark-switch {
display: flex;
justify-content: center;
align-items: center;
margin-top: 10px;
max-width: 50px;
}