trakt / public /css /styles.css
mikmc's picture
Upload 20 files
10a2931 verified
Raw History Blame Contribute Delete
4.92 kB
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
body {
background-color: #f5f5f7;
color: #333;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
padding: 20px;
transition: background-color 0.3s, color 0.3s;
}
.container {
background-color: #fff;
border-radius: 16px;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
padding: 40px;
max-width: 400px;
width: 100%;
transition: background-color 0.3s;
position: relative;
}
.dark-mode-toggle {
position: absolute;
top: 10px;
right: 10px;
cursor: pointer;
font-size: 24px;
transition: transform 0.3s;
}
.dark-mode-toggle:hover {
transform: scale(1.1);
}
h1 {
font-size: 24px;
margin-bottom: 20px;
text-align: center;
}
.toggle-dark-mode {
display: flex;
align-items: center;
margin-bottom: 20px;
}
.toggle-dark-mode label {
margin-left: 8px;
}
.form-group {
margin-bottom: 20px;
}
.label-checkbox-group {
display: flex;
align-items: center;
margin-bottom: 5px;
}
label {
font-weight: 600;
color: inherit;
}
input[type="text"],
select {
width: 100%;
padding: 12px;
border-radius: 8px;
border: 1px solid #ddd;
font-size: 14px;
background-color: #f5f5f7;
transition: border-color 0.3s, background-color 0.3s;
margin-top: 8px;
}
input[type="text"]:focus,
select:focus {
border-color: #007aff;
outline: none;
}
input[type="checkbox"] {
appearance: none;
width: 20px;
height: 20px;
background-color: #f5f5f7;
border: 2px solid #ddd;
border-radius: 5px;
display: inline-block;
position: relative;
cursor: pointer;
transition: background-color 0.3s, border-color 0.3s;
margin-right: 10px;
}
input[type="checkbox"]:checked {
background-color: #007aff;
border-color: #007aff;
}
input[type="checkbox"]:checked::after {
content: '';
position: absolute;
left: 50%;
top: 50%;
width: 6px;
height: 12px;
border: solid white;
border-width: 0 2px 2px 0;
transform: translate(-50%, -50%) rotate(45deg);
}
.hint {
font-size: 12px;
color: #888;
margin-top: 4px;
line-height: 1.4;
}
.button-group {
display: flex;
justify-content: space-between;
}
.btn {
background-color: #007aff;
color: #fff;
border: none;
padding: 12px 24px;
border-radius: 8px;
cursor: pointer;
font-size: 14px;
transition: background-color 0.3s;
}
.btn:hover {
background-color: #005bb5;
}
.modal {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #fff;
border-radius: 16px;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
width: 300px;
padding: 20px;
text-align: center;
z-index: 1000;
display: none;
transition: opacity 0.3s ease, transform 0.3s ease;
}
.modal.show {
display: block;
opacity: 1;
}
.modal-header {
font-size: 18px;
margin-bottom: 10px;
font-weight: bold;
}
.modal-body {
font-size: 14px;
color: #333;
margin-bottom: 20px;
}
.modal-footer {
display: flex;
justify-content: center;
}
.modal-footer .btn {
width: 80px;
}
.modal-footer .btn-error {
background-color: #d9534f;
}
.modal-footer .btn-success {
background-color: #28a745;
}
.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.4);
backdrop-filter: blur(5px);
z-index: 999;
display: none;
}
.modal-overlay.show {
display: block;
}
body.dark-mode .modal {
background-color: #2c2c2e;
color: #f5f5f7;
}
body.dark-mode .modal-body {
color: #ddd;
}
.notification-success {
position: fixed;
top: 20px;
right: 20px;
background-color: #28a745;
color: white;
padding: 10px 20px;
border-radius: 8px;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
display: flex;
align-items: center;
gap: 8px;
opacity: 0;
transition: opacity 0.3s ease, transform 0.3s ease;
z-index: 1000;
}
.notification-success.show {
opacity: 1;
}
body.dark-mode {
background-color: #1c1c1e;
color: #f5f5f7;
}
body.dark-mode .container {
background-color: #2c2c2e;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
body.dark-mode input[type="text"],
body.dark-mode select {
background-color: #3a3a3c;
border: 1px solid #505052;
color: #f5f5f7;
}
body.dark-mode input[type="checkbox"] {
background-color: #3a3a3c;
border-color: #505052;
}
body.dark-mode .hint {
color: #aaa;
}
body.dark-mode .btn {
background-color: #007aff;
}
body.dark-mode .btn:hover {
background-color: #005bb5;
}