/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

* {
	font-family: 'Bebas Neue', sans-serif;
	font-weight: normal;
}

body {
    font-family: 'Bebas Neue', sans-serif;
	font-weight: normal;
    background-color: #000000;
    color: #ffffff;
    margin: 0;
    min-height: 100vh;
}

.container {
    margin: 0 auto;
	margin-top: 3em;
	width: 90vw;
}

h1 {
    font-size: 3em;
	font-weight: normal;
    color: #FDBA12;
    text-align: center;
    margin-bottom: 2em;
}

label {
    display: inline-block;
    font-size: 1.3em;
    color: #FDBA12;
	width: 30%;
	text-align: right;
}

input[type=text],
input[type=email],
input[type=password] {
    width: 60%;
    padding: 1em;
    border: 1px solid #FDBA12;
    color: #ffffff;
    font-size: 1.1em;
    box-sizing: border-box;
	display: inline-block;
	background: #000000;
	margin-bottom: 1em;
	margin-left: 1em;
}

input:focus {
    outline: none;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0px 1000px black inset;
	-webkit-text-fill-color: #FDBA12 !important;
}

form .checkbox {
	text-align: right;
    margin-right: 10%;
}
form .checkbox label {
	text-align: left;
    width: auto;
}
form .checkbox button {
	display: block;
}

button,
.actions a {
    display: inline-block;
    font-size: 1.3em;
    text-decoration: none;
    border: 2px solid #FDBA12;
    cursor: pointer;
    transition: all 0.3s;
	padding: 0.5em 1em;
}

button {
    background-color: #FDBA12;
    color: #000000;
}

button:hover {
    background-color: #000000;
    color: #ffffff;
}

.actions a {
    background-color: transparent;
    color: #FDBA12;
}

.actions a:hover {
    background-color: #FDBA12;
    color: #000000;
}

.error {
    background: rgba(255, 0, 0, 0.3);
    color: #ff6666;
    padding: 1.3em;
    margin: 2em 0;
    border: 1px solid #ff6666;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2em;
}

th, td {
    padding: 1em;
    text-align: left;
    border-bottom: 1px solid white;
}

th {
    background: rgba(253, 186, 18, 0.2);
    color: #FDBA12;
}

tr:hover {
    background: rgba(253, 186, 18, 0.1);
}

.status-active { color: #00ff00; }
.status-inactive { color: #ff0000; }

a {
    color: #FDBA12;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #28a745; /* zielony = aktywny */
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Opcjonalny tekst ON/OFF */
.slider.round:after {
    content: 'OFF';
    color: white;
    position: absolute;
    top: 50%;
    left: 70%;
    transform: translate(-50%, -50%);
    font-size: 1em;
    font-weight: bold;
}

input:checked + .slider.round:after {
    content: 'ON';
    left: 30%;
}