/* Estilo base para o corpo da página */
body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a0033, #2a0055);
    color: #d4c4ff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Estilo do header */
header {
    background: rgba(26, 0, 51, 0.9);
    padding: 15px 20px;
    text-align: center;
    border-bottom: 2px solid #4b2e83;
    position: relative;
    z-index: 10;
}

header h1 {
    margin: 0;
    font-size: 1.3em;
    color: #d4c4ff;
}

header p {
    margin: 5px 0 0;
    font-size: 0.8em;
    color: #b8a1ff;
}

.header-actions {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.lang-select {
    padding: 5px;
    background: #4b2e83;
    color: #d4c4ff;
    border: 1px solid #6b4aa3;
    border-radius: 5px;
    cursor: pointer;
}

/* Estilo do wrapper do dashboard */
.dashboard-wrapper {
    display: flex;
    flex: 1;
    padding: 20px;
}

.sidebar {
    width: 25%;
    padding: 10px;
}

.main-content {
    width: 75%;
    padding: 10px;
}

.card {
    background: rgba(75, 46, 131, 0.8);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(75, 46, 131, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
    animation: glowPulse 4s infinite;
    z-index: 0;
}

.card > * {
    position: relative;
    z-index: 1;
}

h2 {
    font-size: 1.1em;
    color: #d4c4ff;
    margin-top: 0;
}

.access-list {
    list-style: none;
    padding: 0;
}

.access-list li {
    font-size: 0.75em;
    color: #b8a1ff;
    margin: 5px 0;
}

.tool-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tool {
    flex: 1 1 calc(50% - 10px);
    text-align: center;
    background: rgba(107, 74, 163, 0.9);
    padding: 10px;
    border-radius: 5px;
    transition: transform 0.3s;
}

.tool:hover {
    transform: scale(1.05);
}

.tool.locked {
    opacity: 0.6;
    pointer-events: none;
}

.tool a {
    text-decoration: none;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(45deg, #8a6cc6, #b8a1ff);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.8em;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

.btn:hover {
    transform: scale(1.1);
    background: linear-gradient(45deg, #b8a1ff, #d4c4ff);
}

.lock {
    color: #ff4d4d;
    font-size: 1.2em;
}

.plans-overview {
    display: flex;
    gap: 20px;
}

.plan {
    flex: 1;
    background: rgba(107, 74, 163, 0.9);
    padding: 10px;
    border-radius: 5px;
}

.plan h3 {
    font-size: 1em;
    color: #d4c4ff;
}

.plan ul {
    list-style: none;
    padding: 0;
}

.plan ul li {
    font-size: 0.7em;
    color: #b8a1ff;
    margin: 5px 0;
}

/* Estilo para a seção de leitura */
.reading {
    text-align: center;
    padding: 20px;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.card-wrapper {
    animation: flipIn 1s ease-in-out forwards;
    perspective: 1000px;
}

.card {
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card img {
    max-width: 150px;
    border-radius: 5px;
    backface-visibility: hidden;
}

.card .back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #4b2e83;
    border-radius: 5px;
    transform: rotateY(180deg);
    backface-visibility: hidden;
}

.card.flipped {
    transform: rotateY(180deg);
}

.card h3 {
    font-size: 1em;
    color: #d4c4ff;
}

.card p {
    font-size: 0.65em;
    color: #b8a1ff;
}

@keyframes flipIn {
    0% { transform: rotateY(90deg); opacity: 0; }
    50% { transform: rotateY(0deg); opacity: 1; }
    100% { transform: rotateY(0deg); }
}

@keyframes glowPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Estilo para signup e logout */
.signup {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.mystic-input {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    background: #4b2e83;
    border: 1px solid #6b4aa3;
    color: #d4c4ff;
    border-radius: 5px;
}

.mystic-input:focus {
    outline: none;
    box-shadow: 0 0 5px #d4c4ff;
}

.error {
    color: #ff4d4d;
    font-size: 0.7em;
    margin: 5px 0;
}

.link {
    display: block;
    text-align: center;
    color: #b8a1ff;
    text-decoration: none;
    margin-top: 10px;
    font-size: 0.7em;
}

.link:hover {
    text-decoration: underline;
}

/* Media Queries */
@media (min-width: 769px) {
    header h1 { font-size: 1.6em; }
    header p { font-size: 1em; }
    h2 { font-size: 1.3em; }
    .plan h3, .tool h3 { font-size: 1.2em; }
    .plan ul li, .tool ul li { font-size: 0.9em; }
    .tool p, .card p { font-size: 0.8em; }
    .access-list li { font-size: 0.9em; }
    .plans-overview .plan ul li { font-size: 0.8em; }
    .btn { font-size: 1em; }
}

@media (max-width: 768px) {
    .dashboard-wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        padding: 5px;
    }
    .main-content {
        padding: 5px;
        width: 100%;
    }
    .plans-overview {
        flex-wrap: wrap;
        justify-content: center;
    }
    .plans-overview .plan {
        flex: none;
        max-width: 100%;
    }
    .dashboard-footer {
        position: static;
        background: none;
        padding: 5px 0;
    }
    header h1 { font-size: 1.1em; }
    header p { font-size: 0.6em; }
    h2 { font-size: 0.9em; }
    .plan, .tool { max-width: 100%; }
    .plan h3, .tool h3 { font-size: 0.9em; }
    .plan ul li, .tool ul li { font-size: 0.7em; }
    .tool p, .card p { font-size: 0.6em; }
    .access-list li { font-size: 0.7em; }
    .plans-overview .plan ul li { font-size: 0.65em; }
    .btn { font-size: 0.8em; }
}