/* =========================
   GLOBAL RESET + FIXES
========================= */
#conideas-login-form input,
#conideas-register-form input,
.conideas-login-card input,
.conideas-register-card input {
    width: 100%;
    box-sizing: border-box;
}

/* Prevent overflow */
.conideas-login-card,
.conideas-register-card {
    overflow: hidden;
}

/* =========================
   PAGE WRAPPER (SHARED)
========================= */
.conideas-login-page,
.conideas-register-page {
    min-height: 100svh;
    background: #1D3754;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* =========================
   CARD (SHARED SYSTEM)
========================= */
.conideas-login-card,
.conideas-register-card {
    background: #ffffff;
    width: 100%;
    max-width: 400px;
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
}

/* =========================
   HEADINGS
========================= */
.conideas-login-card h2,
.conideas-register-card h2 {
    margin-bottom: 5px;
    color: #1D3754;
}

.login-subtitle,
.register-subtitle {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

/* =========================
   INPUTS (UNIFIED)
========================= */
.conideas-login-card input,
.conideas-register-card input {
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.conideas-login-card input:focus,
.conideas-register-card input:focus {
    border-color: #1D3754;
    outline: none;
    box-shadow: 0 0 0 2px rgba(29,55,84,0.2);
}

/* =========================
   BUTTONS (UNIFIED)
========================= */
.conideas-login-card button,
.conideas-register-card button,
.conideas-login-card input[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #1D3754;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.conideas-login-card button:hover,
.conideas-register-card button:hover,
.conideas-login-card input[type="submit"]:hover {
    background: #2a4d73;
}

/* =========================
   REMEMBER / LINKS
========================= */
.login-links a {
    font-size: 13px;
    color: #1D3754;
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

/* =========================
   ERROR MESSAGE
========================= */
.conideas-error {
    background: #ffe5e5;
    color: #b30000;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 14px;
}

/* =========================
   REGISTER NOTE
========================= */
.register-note {
    margin-top: 15px;
    font-size: 12px;
    color: #888;
}
	
/* =========================
   REMEMBER ME FIX
========================= */
.login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 12px;
}

/* Fix checkbox size and prevent full width */
.login-remember input[type="checkbox"] {
    width: auto !important;
    margin: 0;
}

/* Ensure label stays inline */
.login-remember label {
    display: inline;
    margin: 0;
}
	
/* =========================
   PASSWORD TOGGLE
========================= */
.conideas-password-field {
    position: relative;
}

.conideas-password-field input {
    padding-right: 40px; /* space for icon */
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    opacity: 0.6;
}

.toggle-password:hover {
    opacity: 1;
}	
	
/* =========================
   APP CONTAINER
========================= */
.conideas-app {
    padding: 20px;
    max-width: 1100px;
    margin: auto;
    font-family: sans-serif;
}

/* =========================
   TOP BAR
========================= */
.conideas-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1D3754;
    color: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.conideas-topbar h3 {
    margin: 0;
    font-size: 18px;
}

.role-badge {
    font-size: 12px;
    opacity: 0.8;
}

.logout-btn {
    background: #fff;
    color: #1D3754;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
}

/* =========================
   CARD DESIGN
========================= */
.conideas-card {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    animation: fadeIn 0.3s ease;
}

.conideas-card:hover {
    transform: translateY(-3px);
}

.conideas-card h4 {
    margin: 0 0 5px;
    color: #1D3754;
}

.conideas-card p {
    font-size: 13px;
    color: #666;
}

.conideas-card a {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    color: #1D3754;
    font-weight: bold;
}

/* =========================
   PREMIUM STYLE
========================= */
.conideas-card.premium {
    border-left: 4px solid #1D3754;
}

/* =========================
   UPGRADE CARD
========================= */
.conideas-card.upgrade {
    background: #1D3754;
    color: #fff;
}

.conideas-card.upgrade a {
    color: #fff;
}
	
	
/* =========================
   APP SHELL
========================= */
.conideas-app-shell {
    min-height: 100svh;
    background: #f5f7fb;
    padding-bottom: 70px;
    font-family: sans-serif;
}

/* HEADER */
.conideas-app-header {
    background: #1D3754;
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-logout {
    background: #fff;
    color: #1D3754;
    padding: 5px 10px;
    border-radius: 6px;
    text-decoration: none;
}

/* GRID */
.conideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    padding: 15px;
}

/* PAGES */
.app-page {
    display: none;
    padding: 10px;
}

.app-page.active {
    display: block;
}

/* BOTTOM NAV */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.bottom-nav button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.6;
}

.bottom-nav button.active {
    opacity: 1;
    transform: scale(1.2);
}

/* ANIMATION */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
	
/* =========================
   COMMUNITY CSS
========================= */
	
.conideas-community-grid{
    display:grid;
    gap:15px;
    padding:20px;
}

.community-card{
    background:#fff;
    border-radius:14px;
    padding:15px;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
}

.community-top{
    display:flex;
    gap:15px;
    align-items:flex-start;
}

.community-avatar img{
    border-radius:50%;
}

.community-info{
    flex:1;
}

.community-info h3{
    margin:0;
    color:#1D3754;
}

.community-info p{
    margin:5px 0;
    font-weight:bold;
}

.community-info small{
    color:#666;
}

.community-toggle{
    margin-top:12px;
    background:#1D3754;
    color:#fff;
    border:none;
    padding:8px 14px;
    border-radius:6px;
    cursor:pointer;
}

.community-expand{
    display:none;
    margin-top:15px;
    border-top:1px solid #eee;
    padding-top:15px;
}

.community-card.active .community-expand{
    display:block;
}

.community-profile-btn{
    display:inline-block;
    margin-top:10px;
    background:#1D3754;
    color:#fff;
    padding:8px 12px;
    border-radius:6px;
    text-decoration:none;
}
	
.conideas-success{
    background:#e7f7ed;
    color:#18794e;
    padding:10px;
    border-radius:6px;
    margin-bottom:15px;
    font-size:14px;
}

/* =========================
   GLOBAL
========================= */

* {
    box-sizing: border-box;
}

.conideas-dashboard {
    min-height: 100vh;
    background: #f5f7fb;
    padding: 20px;
    font-family: Arial, sans-serif;
}

/* =========================
   HEADER
========================= */

.conideas-dashboard-header {
    background: #1D3754;
    color: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.conideas-dashboard-header h2 {
    margin: 0 0 5px;
    font-size: 24px;
}

.conideas-dashboard-header p {
    margin: 0;
    opacity: 0.85;
    font-size: 14px;
}

/* =========================
   LOGOUT BUTTON
========================= */

.conideas-logout-btn {
    display: inline-block;
    background: #fff;
    color: #1D3754;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
}

.conideas-logout-btn:hover {
    background: #edf2f7;
}

/* =========================
   MODULE WRAPPER
========================= */

.conideas-dashboard-modules {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* =========================
   MODULE CARD
========================= */

.conideas-module {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* =========================
   PREMIUM MODULE
========================= */

.premium-module {
    border-left: 4px solid #1D3754;
}

/* =========================
   MODULE TOGGLE
========================= */

.conideas-module-toggle {
    width: 100%;
    border: none;
    background: #fff;
    padding: 18px 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    cursor: pointer;

    font-size: 16px;
    font-weight: 600;

    color: #1D3754;
}

.conideas-module-toggle:hover {
    background: #f8fafc;
}

/* =========================
   MODULE ICON
========================= */

.module-icon {
    font-size: 22px;
    line-height: 1;
}

/* =========================
   MODULE CONTENT
========================= */

.conideas-module-content {
    display: none;
    padding: 0 20px 20px;
    border-top: 1px solid #eee;
}

.conideas-module.active .conideas-module-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 20px;
}

/* =========================
   LINKS
========================= */

.conideas-module-content a {
    color: #1D3754;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s ease;
}

.conideas-module-content a:hover {
    text-decoration: underline;
}

/* =========================
   PREMIUM LOCK
========================= */

.premium-locked {
    opacity: 0.55;
    font-size: 14px;
    cursor: not-allowed;
}

/* =========================
   LOGIN + REGISTER
========================= */

.conideas-login-page,
.conideas-register-page {
    min-height: 100vh;
    background: #1D3754;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

.conideas-login-card,
.conideas-register-card {
    width: 100%;
    max-width: 420px;

    background: #fff;

    border-radius: 16px;

    padding: 35px 30px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.conideas-login-card h2,
.conideas-register-card h2 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #1D3754;
}

.login-subtitle,
.register-subtitle {
    color: #777;
    font-size: 14px;
    margin-bottom: 22px;
}

/* =========================
   FORM INPUTS
========================= */

.conideas-login-card input,
.conideas-register-card input,
.conideas-register-card select,
.conideas-register-card textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 14px;
}

.conideas-login-card input:focus,
.conideas-register-card input:focus,
.conideas-register-card textarea:focus {
    outline: none;
    border-color: #1D3754;
    box-shadow: 0 0 0 2px rgba(29,55,84,0.15);
}

/* =========================
   PASSWORD FIELD
========================= */

.conideas-password-field {
    position: relative;
}

.conideas-password-field input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 14px;

    transform: translateY(-50%);

    cursor: pointer;
    opacity: 0.6;
}

.toggle-password:hover {
    opacity: 1;
}

/* =========================
   BUTTONS
========================= */

.conideas-login-card button,
.conideas-register-card button {
    width: 100%;
    border: none;
    background: #1D3754;
    color: #fff;

    padding: 13px;

    border-radius: 10px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.conideas-login-card button:hover,
.conideas-register-card button:hover {
    background: #2a4d73;
}

/* =========================
   SUCCESS + ERROR
========================= */

.conideas-success {
    background: #e7f7ed;
    color: #18794e;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 14px;
}

.conideas-error {
    background: #ffe5e5;
    color: #b30000;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* =========================
   COMMUNITY GRID
========================= */

.conideas-community-grid {
    display: grid;
    gap: 16px;
}

.community-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.community-top {
    display: flex;
    gap: 15px;
}

.community-avatar img {
    border-radius: 50%;
}

.community-info {
    flex: 1;
}

.community-info h3 {
    margin: 0;
    color: #1D3754;
}

.community-info p {
    margin: 6px 0;
    font-weight: 600;
}

.community-expand {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.community-card.active .community-expand {
    display: block;
}

.community-toggle {
    margin-top: 14px;
    border: none;
    background: #1D3754;
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .conideas-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .conideas-login-card,
    .conideas-register-card {
        padding: 28px 22px;
    }

}

/* =========================
   MOBILE
========================= */
@media (max-width: 480px) {
    .conideas-login-card,
    .conideas-register-card {
        padding: 25px 20px;
    }
}

@media (max-width: 600px) {

    .conideas-topbar {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .logout-btn {
        width: 100%;
        text-align: center;
    }
}
	
/* =========================
   MENU NAVIGATION HIDE
========================= */
	
/* Hide by default */
.nav-logged-in,
.nav-logged-out,
.nav-premium {
    display: none !important;
}

/* Show for logged-in users */
.logged-in .nav-logged-in {
    display: block !important;
}

/* Show for logged-out users */
.logged-out .nav-logged-out {
    display: block !important;
}

/* Show premium only */
.role-premium_user .nav-premium {
    display: block !important;
}


/* =========================
   FILTER BAR
========================= */

.conideas-community-filters{
    display:grid;
    gap:12px;
    margin-bottom:20px;
}

.conideas-community-filters input,
.conideas-community-filters select{
    width:100%;
    padding:12px;
    border:1px solid #ddd;
    border-radius:10px;
    font-size:14px;
    box-sizing:border-box;
}

.conideas-community-filters input:focus,
.conideas-community-filters select:focus{
    outline:none;
    border-color:#1D3754;
    box-shadow:0 0 0 2px rgba(29,55,84,0.15);
}

/* Desktop */
@media(min-width:768px){

    .conideas-community-filters{
        grid-template-columns:
        2fr
        1fr
        1fr;
    }

}	