body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
    color: #0d1b2a;
    margin: 0;
    padding: 20px;
    transition: all 0.3s;
}

body.dark-mode {
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #0d1b2a, #1b263b);
    color: #e0e1dd;
}

header {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #00b4d8;
}

h1 {
    font-size: 2.5em;
    background: linear-gradient(45deg, #00b4d8, #90e0ef);
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(0, 180, 216, 0.5);
}

h2 {
    font-size: 1.8em;
    color: #00b4d8;
    text-align: center;
    margin: 20px 0;
}

.dark-mode h2 {
    color: #90e0ef;
}

.intro p {
    text-align: center;
    font-size: 1.2em;
    margin: 20px 0;
}

.intro strong {
    color: #00b4d8;
}

.dark-mode .intro strong {
    color: #90e0ef;
}

.plans {
    margin: 40px 0;
}

.plan-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.plan-card {
    background: #fff;
    border: 1px solid #00b4d8;
    border-radius: 10px;
    padding: 20px;
    width: 250px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.dark-mode .plan-card {
    background: rgba(27, 38, 59, 0.8);
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.3);
}

.plan-card h3 {
    font-size: 1.5em;
    color: #00b4d8;
    margin-bottom: 10px;
}

.dark-mode .plan-card h3 {
    color: #90e0ef;
}

.plan-card .price {
    font-size: 1.8em;
    font-weight: bold;
    color: #0d1b2a;
    margin: 10px 0;
}

.dark-mode .plan-card .price {
    color: #e0e1dd;
}

.plan-card ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.plan-card ul li {
    margin: 10px 0;
    color: #0d1b2a;
}

.dark-mode .plan-card ul li {
    color: #e0e1dd;
}

.plan-btn {
    display: inline-block;
    background: linear-gradient(45deg, #00b4d8, #90e0ef);
    padding: 10px 20px;
    border-radius: 5px;
    color: #0d1b2a;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s;
}

.plan-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 180, 216, 0.5);
}

.tools {
    margin: 40px 0;
    text-align: center;
}

.tools ul {
    list-style: none;
    padding: 0;
}

.tools ul li {
    margin: 15px 0;
}

.tools a {
    color: #00b4d8;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.tools a:hover {
    color: #90e0ef;
}

/* Estilos do prompts.php */
.user-plan {
    background: rgba(0, 180, 216, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-plan p {
    margin: 0;
    font-weight: bold;
    color: #0d1b2a;
}

.dark-mode .user-plan p {
    color: #e0e1dd;
}

.upgrade-btn {
    background: linear-gradient(45deg, #ff6b6b, #ff8787);
    padding: 8px 15px;
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s;
}

.upgrade-btn:hover {
    transform: scale(1.05);
}

.controls {
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 20px 0;
}

input#search {
    padding: 10px;
    border: 1px solid #00b4d8;
    border-radius: 5px;
    background: #fff;
    color: #0d1b2a;
    width: 200px;
}

.dark-mode input#search {
    background: rgba(27, 38, 59, 0.8);
    color: #e0e1dd;
}

button {
    background: linear-gradient(45deg, #00b4d8, #90e0ef);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    color: #0d1b2a;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 180, 216, 0.5);
}

.new-prompts, #suggestions, #history {
    margin: 20px 0;
    padding: 15px;
    background: #fff;
    border: 1px solid #00b4d8;
    border-radius: 10px;
}

.dark-mode .new-prompts, .dark-mode #suggestions, .dark-mode #history {
    background: rgba(27, 38, 59, 0.8);
}

.filter-section {
    margin: 20px 0;
}

h3 {
    font-size: 1.2em;
    color: #00b4d8;
    text-shadow: 0 0 5px rgba(0, 180, 216, 0.3);
}

.dark-mode h3 {
    color: #90e0ef;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background: #fff;
    border: 1px solid #00b4d8;
    padding: 8px 15px;
    border-radius: 5px;
    color: #0d1b2a;
    cursor: pointer;
    transition: all 0.3s;
}

.dark-mode .filter-btn {
    background: rgba(27, 38, 59, 0.8);
    color: #e0e1dd;
}

.filter-btn:hover, .filter-btn.active {
    background: #00b4d8;
    color: #0d1b2a;
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.5);
}

select {
    padding: 10px;
    border: 1px solid #00b4d8;
    border-radius: 5px;
    background: #fff;
    color: #0d1b2a;
}

.dark-mode select {
    background: rgba(27, 38, 59, 0.8);
    color: #e0e1dd;
}

.prompt-card {
    background: #fff;
    border: 1px solid #00b4d8;
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.dark-mode .prompt-card {
    background: rgba(27, 38, 59, 0.8);
}

.prompt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.3);
}

.prompt-text {
    cursor: pointer;
    display: block;
    margin-bottom: 10px;
    color: #0d1b2a;
}

.dark-mode .prompt-text {
    color: #e0e1dd;
}

.prompt-info {
    font-size: 0.9em;
    color: #00b4d8;
    margin-bottom: 10px;
}

.dark-mode .prompt-info {
    color: #90e0ef;
}

.prompt-info span {
    margin-right: 15px;
}

.prompt-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.like-btn, .fav-btn {
    cursor: pointer;
    font-size: 1.2em;
    transition: transform 0.3s;
}

.like-btn.liked {
    animation: pulse 0.5s;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.fav-btn.favorited {
    color: #ff6b6b;
}

.rating {
    color: #00b4d8;
    margin-right: 10px;
}

.dark-mode .rating {
    color: #90e0ef;
}

#pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

#pagination button:disabled {
    background: #778da9;
    cursor: not-allowed;
}

.modal {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #00b4d8;
    color: #0d1b2a;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 180, 216, 0.7);
    z-index: 1000;
    font-weight: bold;
}

.plan-card.popular {
    border: 2px solid #00b4d8;
    position: relative;
}

.plan-card.limited {
    border: 2px solid #ff6b6b;
    position: relative;
}

.badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: #00b4d8;
    color: #0d1b2a;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
}

.dark-mode .badge {
    background: #90e0ef;
}

.plan-card.limited .badge {
    background: #ff6b6b;
    color: #fff;
}

.old-price {
    text-decoration: line-through;
    color: #778da9;
    font-size: 0.8em;
}

.login-container {
    background: #fff;
    border: 1px solid #00b4d8;
    border-radius: 10px;
    padding: 30px;
    max-width: 400px;
    margin: 50px auto;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.1);
    transition: all 0.3s;
}

.dark-mode .login-container {
    background: rgba(27, 38, 59, 0.8);
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.3);
}

.login-container h2 {
    font-size: 1.8em;
    color: #00b4d8;
    margin-bottom: 20px;
}

.dark-mode .login-container h2 {
    color: #90e0ef;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: bold;
    color: #0d1b2a;
    margin-bottom: 5px;
}

.dark-mode .form-group label {
    color: #e0e1dd;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #00b4d8;
    border-radius: 5px;
    background: #fff;
    color: #0d1b2a;
    box-sizing: border-box;
}

.dark-mode .form-group input {
    background: rgba(27, 38, 59, 0.8);
    color: #e0e1dd;
}

.login-container button[type="submit"] {
    width: 100%;
    margin-top: 10px;
}

.error {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.register-link {
    margin-top: 15px;
    color: #0d1b2a;
}

.dark-mode .register-link {
    color: #e0e1dd;
}

.register-link a {
    color: #00b4d8;
    font-weight: bold;
    text-decoration: none;
}

.register-link a:hover {
    color: #90e0ef;
}

.theme-toggle {
    background: linear-gradient(45deg, #778da9, #b2ebf2);
    margin-top: 20px;
    padding: 8px 15px;
}

.dark-mode .theme-toggle {
    background: linear-gradient(45deg, #90e0ef, #00b4d8);
}

.success {
    color: #00b4d8;
    background: rgba(0, 180, 216, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.admin-container {
    max-width: 800px;
    margin: 50px auto;
}

.admin-section {
    background: #fff;
    border: 1px solid #00b4d8;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.1);
}

.dark-mode .admin-section {
    background: rgba(27, 38, 59, 0.8);
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.3);
}

.admin-section h2 {
    font-size: 1.5em;
    color: #00b4d8;
    margin-bottom: 15px;
}

.dark-mode .admin-section h2 {
    color: #90e0ef;
}

.admin-section form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-section textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    border: 1px solid #00b4d8;
    border-radius: 5px;
    background: #fff;
    color: #0d1b2a;
    resize: vertical;
}

.dark-mode .admin-section textarea {
    background: rgba(27, 38, 59, 0.8);
    color: #e0e1dd;
}

.admin-section ul {
    list-style: none;
    padding: 0;
}

.admin-section ul li {
    margin: 10px 0;
    color: #0d1b2a;
}

.dark-mode .admin-section ul li {
    color: #e0e1dd;
}

.delete-btn {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: bold;
    margin-left: 10px;
}

.delete-btn:hover {
    color: #ff8787;
}

/* Responsividade para celulares pequenos */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    header {
        padding: 10px 0;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.5em;
    }

    .plan-container {
        flex-direction: column;
        align-items: center;
    }

    .plan-card {
        width: 90%;
        max-width: 300px;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    input#search, button, select {
        width: 100%;
        margin: 5px 0;
    }

    .button-group {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn {
        width: 100%;
    }

    .prompt-card {
        font-size: 0.9em;
        padding: 10px;
    }

    .prompt-actions {
        flex-wrap: wrap;
    }

    .admin-container {
        margin: 20px auto;
    }

    .admin-section {
        padding: 15px;
    }

    .login-container {
        padding: 20px;
        margin: 20px auto;
    }
}