/* stylesrobot.css */
@charset "utf-8";

body {
    margin: 0;
    padding: 0;
    /* font-family: 'Inter', 'Roboto', 'sans-serif'; */
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
}

header {
    background-color: #1f1f1f;
    padding: 1rem 2rem;
    text-align: left;
    font-size: 1.5rem;
    font-weight: bold;
    border-bottom: 1px solid #333;
}
.negative {
  color: red;
}
.positive {
  color: white;}

main {
    padding: 2rem;
    max-width: 800px;
    margin: auto;
}

button {
    background-color: #333;
    color: #e0e0e0;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
}



button:hover {
    background-color: #555;
    box-shadow: 0 0 8px red;
}

button:active {
    transform: scale(0.96);
    box-shadow: 0 0 4px #64b5f6;
}


input, select {
    width: 100%;
    padding: 0.8rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    background-color: #1f1f1f;
    color: #e0e0e0;
    border: 1px solid #333;
    border-radius: 6px;
    font-size: 1rem;
}

textarea{
    height: 15em;
    width: 120em;
    width: 100%;
    padding: 0.8rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    background-color: #1f1f1f;
    color: #e0e0e0;
    border: 1px solid #333;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box; /* Ensure padding doesn't shrink inputs */
}

.card {
    background-color: #1f1f1f;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    gap: 2rem;        /* Space between cards */
    justify-content: center;
    margin: 2rem auto;
    max-width: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.7);
}


a {
    color: #64b5f6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #121212;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#loader::after {
    content: "";
    width: 40px;
    height: 40px;
    border: 5px solid #64b5f6;
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* .form-card {
    background-color: #1f1f1f;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
 */


.form-login-register {
    background-color: #1f1f1f;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    flex: 1 1 300px;     /* Grow, shrink, base width */
    min-width: 300px;
    max-width: 600px;    /* Optional: prevents cards from growing too wide */
}

form .txt_field{
position: relative;
border-bottom: 2px solid #adadad;
margin: 30px 0;
}
.txt_field input {
margin-left: 20%;
width: 80%;
padding: 0 5px;
height: 40px;
font-size: 16px;
border: none;
background: none;
outline: none;
}
.txt_field label{
position: absolute;
top: 50%;
left: 5px;
color:#adadad;
transform: translateY(-50%);
font-size: 16px;
pointer-events: none;
transition: .5s;
}
.txt_field span::before{
content:'';
position: absolute;
top: 40px;
left:0;
width: 80%;
height: 2px;
background: #1f1f1f;
}
.txt_field input:focus ~ label,
.txt_field input:valid ~ label{
top: -5px;
color: #1f1f1f;
}

.checkbox_field {
  margin: 20px 0;
  color: #adadad;
  font-size: 16px;
}

.checkbox_field input[type="checkbox"] {
  margin-right: 10px;
  transform: scale(1.2);
  accent-color: #1f1f1f; /* Modern browsers support this for checkbox styling */
}

.forgot{
margin: -5px 0 20px 5px;
color: #a6a6a6;
cursor: pointer;
}
.forgot:hover{
text-decoration: underline;
}
input[type="submit"]{
width: 100%;
height: 50px;
border: 1px solid;
background-color: #333;
border-radius: 15px;
font-size: 16px;
color: #e9f4fb;
font-weight: 700;
cursor: pointer;
outline: none;
}
input[type="submit"]:hover{
border-color: #7DF9FF;
transition: .5s;
}
.form-card {
    background-color: #1f1f1f;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    flex: 1 1 300px;     /* Grow, shrink, base width */
    min-width: 500px;
    max-width: 900px;    /* Optional: prevents cards from growing too wide */
    display: flex;
}

form label {
    display: block;
    margin-bottom: 0.2rem;
    font-weight: bold;
    color: #cccccc;
}

input, select {
    width: 40%;
    padding: 0.4rem 0.6rem;
    margin-bottom: 0.6rem;
    background-color: #121212;
    color: #e0e0e0;
    border: 1px solid #333;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

textarea {
    height: 15em;
    width: 120em;
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    background-color: #121212;
    color: #e0e0e0;
    border: 1px solid #333;
    border-radius: 8px;
    font-size: 0.8rem;
    transition: border-color 0.3s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color:#7DF9FF;
}
.form-row {
    display: flex;
    gap: 1rem;
}

.form-row > div {
    flex: 1;
}
form.compact-form {
    display: grid;
    /* grid-template-columns: auto 1fr; */
    grid-template-columns: min-content 1fr;
    gap: 0.25rem 0.5rem;              /* Smaller gaps */
    align-items: center;
    /* font-size: 0.9rem;                Slightly smaller text
    padding: 0.5rem;                  Optional: reduce padding */
}

form.compact-form input:not([type="checkbox"]),
form.compact-form select,
label {
    width: 10em;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    line-height: 1.2;
    box-sizing: border-box;
}
form.compact-form textarea {
    resize: both;
    margin-bottom: 1.5rem;
    background-color: #121212;
    color: #e0e0e0;
    border: 1px solid #333;
    border-radius: 8px;
    font-size: 0.8rem;
    transition: border-color 0.3s;
}
form.compact-form input[type="checkbox"] {
    appearance: checkbox;        /* Standard */
    -webkit-appearance: checkbox; /* Safari/Chrome */
    -moz-appearance: checkbox;    /* Firefox */
    /* width: auto; */
    width: 16px;
    height: 16px;
    margin-right: 0.5em;
    transform: scale(1.2);  /* make it a bit bigger */
    accent-color: #7DF9FF;      /* modern browsers: gives it a red check */
}

.table-card {
    background-color: #1f1f1f;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 800px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    overflow-x: auto;
}

table {
    min-width: 500px;  /* Make sure table is wide enough to scroll */
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 1rem;
    text-align: left;
    /* border-bottom: 1px solid #333; */
    border-bottom: 1px solid red;

}

th {
    background-color: #2c2c2c;
    color: #e0e0e0;
    font-weight: bold;
}

td {
    background-color: #121212;
    color: #e0e0e0;
}

tr:hover {
    background-color: gray;
    cursor: pointer;
}

tr:nth-child(even) {
    background-color: #1f1f1f;
}

/* Add this at the bottom of your styles.css */
.fade-in {
    opacity: 0;
    animation: fadeInAnimation ease 1.2s;
    animation-fill-mode: forwards;
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes spin {
    to { transform: rotate(360deg); }
}
