/* Import Comfortaa font */
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@400;700&display=swap');

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: 'Comfortaa', cursive;
    background-color: #282a36; /* Dracula dark */
    color: #f8f8f2;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem;
}

/* Container */
.container {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header */
h1 {
    font-size: 2.5rem;
    color: #bd93f9;
    margin-bottom: 2rem;
    text-align: center;
}

/* Card styling (buttons, forms) */
.card {
    background-color: #44475a; /* secondary Dracula */
    color: #f8f8f2;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.2rem;
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin: 0.7rem 0;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    cursor: pointer;
}

/* Hover effect for card buttons */
.card:hover {
    background-color: #6272a4; /* lighter Dracula */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* Links inside cards fill the whole div */
.card a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

/* Form elements */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #44475a;
    padding: 2rem;
    border-radius: 12px;
    max-width: 400px;
    width: 100%;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #f8f8f2;
    text-align: left;
    width: 100%;
}

input[type="text"],
select {
    width: 100%;
    padding: 0.6rem 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: none;
    background-color: #6272a4;
    color: #f8f8f2;
    font-family: 'Comfortaa', cursive;
    font-size: 1rem;
    outline: none;
    transition: background-color 0.2s, transform 0.2s;
}

input[type="text"]:focus,
select:focus {
    background-color: #50fa7b; /* accent color on focus */
    color: #282a36;
    transform: scale(1.02);
}

button {
    background-color: #bd93f9;
    color: #282a36;
    font-family: 'Comfortaa', cursive;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

button:hover {
    background-color: #ff79c6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

/* Footer */
footer {
    margin-top: 3rem;
    text-align: center;
    color: #6272a4;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
    body {
        padding: 1rem;
    }
    h1 {
        font-size: 2rem;
    }
    .card, form {
        width: 100%;
        font-size: 1.1rem;
    }
}

/* Classe IMG */
.img {
    height: 200px;
    object-fit: cover;
    margin: auto;
}

/* Additional styling for PHP directory index */
.card .file-type {
    display: block;
    font-size: 0.9rem;
    color: #bd93f9;
    margin-top: 0.3rem;
}
.card img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}
