/* style.css - Estilização geral para o sistema de horóscopo */

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #f4f0f8, #e0e0e0);
    color: #333;
    margin: 0;
    padding: 0;
}

header {
    background: linear-gradient(135deg, #cbba2a, #fff8bc);
    color: #990000;
    text-align: center;
    padding: 15px 10px;
    border-radius: 20px;
    margin: 7px;
    border: 1px solid #ff8a8a;
}

header a {
    color: #dda0dd;
    text-decoration: none;
    font-weight: bold;
    margin-left: 1rem;
}

header a:hover {
    text-decoration: underline;
}

.dashboard {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    background-color: #6a0dad;
    color: white;
    width: 260px;
    padding: 1rem;
    box-sizing: border-box;
}

.sidebar h2 {
    margin-top: 0;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #EDDE08;
}

.sidebar ul {
    list-style: none;
    padding-left: 0;
}

.sidebar ul li {
    margin-bottom: 0.75rem;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.sidebar ul li a:hover {
    color: #dda0dd;
}

.hamburger {
    display: none;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1001;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        background: #6a0dad;
        color: white;
        border: none;
        padding: 15px;
        font-size: 20px;
        cursor: pointer;
        margin-bottom: 1rem;
    }

    .sidebar {
        position: fixed;
        top: 0;
        right: -220px;
        width: 220px;
        height: 100%;
        z-index: 1000;
        transition: right 0.3s ease;
        background-color: #6a0dad;
        color: white;
        padding: 1rem;
        box-sizing: border-box;
    }

    .sidebar.open {
        right: 0;
    }

    .sidebar.open ul {
        display: block !important;
    }

    .sidebar.open li {
        display: block !important;
    }

    .sidebar.open a {
        display: block !important;
        color: white !important;
        text-decoration: none !important;
    }

    .main-content {
        padding: 0.25rem;
        margin-left: 0;
    }
}

.main-content {
    flex-grow: 1;
    padding: 0.45rem;
    background-color: white;
    box-sizing: border-box;
}

h1,
h2,
h3 {
    color: #6a0dad;
}

.stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.card {
    background-color: #dda0dd;
    color: #4b004b;
    padding: 1rem;
    border-radius: 8px;
    flex: 1;
    text-align: center;
    box-shadow: 0 0 8px rgba(106, 13, 173, 0.3);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

table th,
table td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
    font-size: 1.1rem;
}

table th {
    background-color: #bd6cf6;
    color: white;
}

table tr:nth-child(even) {
    background-color: #f9f6fb;
}

button {
    background-color: #6a0dad;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

button:hover {
    background-color: #4b004b;
}

button,
a.delete {
    background-color: #6a0dad;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

button:hover,
a.delete:hover {
    background-color: #4b004b;
}

button.delete,
a.delete {
    background-color: #dc3545 !important;
    color: white !important;
    border: 1px solid #dc3545 !important;
    text-decoration: none !important;
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

button.delete:hover,
a.delete:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
}

.actions {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.actions button {
    margin-right: 0.5rem;
}

.filter-btn {
    background-color: #007bff !important;
    border-color: #007bff !important;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    border: none;
    transition: background-color 0.3s ease;
    width: auto;
}

.filter-btn:hover {
    background-color: #0056b3 !important;
}

.mensagem {
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 1rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.public-main {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(106, 13, 173, 0.2);
}

.public-main h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.public-main form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.public-main .previsao {
    margin-top: 1.5rem;
    background-color: #f0e6f7;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dda0dd;
}

@media (max-width: 768px) {
    .dashboard {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -220px;
        width: 220px;
        height: 100%;
        z-index: 1000;
        transition: left 0.3s ease;
        background-color: #6a0dad;
        color: white;
        padding: 1rem;
        box-sizing: border-box;
    }

    .sidebar.open {
        left: 0;
    }

    .hamburger {
        display: block;
        background: #6a0dad;
        color: white;
        border: none;
        padding: 15px;
        font-size: 20px;
        cursor: pointer;
        margin-bottom: 1rem;
    }

    .main-content {
        padding: 0.1rem;
        margin-left: 0;
    }

    .stats {
        flex-direction: column;
    }

    .card {
        flex: none;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .generate-section {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .generate-section button {
        width: 100%;
    }

    table {
        font-size: 14px;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }

    table th,
    table td {
        padding: 0.5rem;
        white-space: nowrap;
    }

    .actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .actions button {
        width: 100%;
        margin-right: 0;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.2rem;
    }
}

@media (min-width: 769px) {
    .sidebar {
        position: static;
        width: 220px;
        height: auto;
    }

    .dashboard {
        flex-direction: row;
    }

    .hamburger {
        display: none;
    }
}

/* Estilos modernos para a página pública */
.signos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.signo-btn {
    background: linear-gradient(135deg, #6a0dad, #dda0dd);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.signo-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.signo-btn .icone {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.signo-btn .nome {
    font-weight: bold;
}

.previsao {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sign-card {
    background: #fffcef;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.sign-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.sign-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.sign-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.sign-dates {
    font-size: 1.2rem;
    opacity: 0.9;
}

.color-box {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: 10px auto 0;
    border: 2px solid white;
}

@media (max-width: 768px) {
    .sign-card {
        padding: 15px;
    }

    .sign-icon {
        font-size: 20px;
    }

    .sign-name {
        font-size: 1.2rem;
    }

    .signs-grid {
        gap: 10px;
    }

    button {
        font-size: 1.2em;
    }

    #data-inicial,
    #data-final {
        width: 30% !important;
    }

    label[for="data-inicial"],
    label[for="data-final"] {
        font-weight: bold;
    }

    form {
        margin-top: 1rem;
    }

    .filter-form {
        margin-top: 2rem;
    }

    .filter-form label {
        font-weight: bold;
    }
}

/* Estilos para a tela de login */

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-container {
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 2px solid #6a0dad;
}

.login-container h1 {
    color: #6a0dad;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.erro {
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.75rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border: 1px solid #f5c6cb;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #6a0dad;
    outline: none;
    box-shadow: 0 0 5px rgba(106, 13, 173, 0.5);
}

button[type="submit"] {
    background: linear-gradient(135deg, #6a0dad, #dda0dd);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: auto;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 13, 173, 0.4);
}

/* Responsividade para mobile */
@media (max-width: 480px) {
    .login-container {
        padding: 1.5rem;
        margin: 1rem;
    }

    .login-container h1 {
        font-size: 1.5rem;
    }

    .form-group input {
        padding: 0.6rem;
    }

    button[type="submit"] {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
}