@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

        * {
                  -webkit-tap-highlight-color: transparent;
              }

              ::selection {
                  background-color: #673DE6; 
                  color: #ffffff; 
              }

        body {
            font-family: 'Poppins', sans-serif !important;
            background-color: #111827;
            color: #ffffff;
            margin: 0;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            padding: 0px;
        }

        header {
            width: 100%;
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 25px;
            box-sizing: border-box;
            margin-top: 80px;
        }

        body.modal-open {
            overflow: hidden !important;
        }

        header h1 {
            font-size: 2.5em;
            font-weight: bold;
            color: #fff;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 15px;
        }

        ::-webkit-scrollbar {
    width: 10px; /* Bawasan ang lapad */
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #111827; /* Dark background color mo */
}

::-webkit-scrollbar-thumb {
    background-color: #374151; /* Default thumb color */
    border: 2px solid #111827; /* Border para maging dark ang track */
    border-radius: 0px;
    transition: background-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #673DE6; /* Primary color mo sa hover */
}

::-webkit-scrollbar-button {
    display: none;
}

        #burger-menu.hidden {
            display: none !important;
        }

        body.user-logged-in #burger-menu.hidden {
    display: none !important;
}

        .nav-container {
            justify-content: space-between;
        }

        .nav-left {
            gap: 0;
        }

        .search-container {
            width: 100%;
            max-width: 500px;
            margin-left: auto;
            margin-right: auto;
        }

        .sticky-nav-wrapper {
            position: sticky;
            top: 0;
            width: 100%;
            z-index: 1000;
            padding: 0;
            transition: transform 0.4s ease-in-out;
        }

        .sticky-nav-wrapper.nav-hidden {
            transform: translateY(-120%);
        }

        #main-nav {
            width: 100%;
            background-color: #1F2937;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-top: 1px solid #374151;
            border-bottom: 1px solid #374151;
            border-left: none;
            border-right: none;
            border-radius: 0;
            padding: 0;
            box-sizing: border-box;
        }

        .nav-container {
            width: 100%;
            padding: 8px 25px !important;
            box-sizing: border-box;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .nav-logo img {
            height: 36px;
            display: block;
        }

        .nav-menu {
            list-style: none;
            display: flex;
            gap: -1px !important;
            margin: 0;
            padding: 0;
        }

        .nav-menu a {
            color: #d5d5d5;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.95em;
            padding: 8px 15px;
            border-radius: 4px;
            transition: all 0.2s ease;
        }

        .nav-menu a:hover {
            background-color: #ffffff12;
            color: #ffffff;
        }

        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
        }

        .nav-left {
            display: flex;
            align-items: center;
            gap: 25px;
            flex-shrink: 0;
        }

        .nav-right {
            display: flex;
            align-items: center;
            gap: 20px;
            flex-grow: 1;
            justify-content: flex-end;
        }

        #burger-menu {
            background-color: transparent;
            border: none;
            cursor: pointer;
            padding: 5px;
            z-index: 1001;
        }

        .toggle-container {
            position: relative;
            display: flex;
            background-color: #1a1a1a;
            border-radius: 50px;
            width: fit-content;
            border: 1px solid #333;
            padding: 5px;
        }

        .toggle-option {
            background: none;
            border: none;
            color: #a0a0a0;
            font-weight: bold;
            font-size: 0.9em;
            padding: 12px 20px;
            cursor: pointer;
            position: relative;
            z-index: 2;
            transition: color 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .main-content-area {
            flex-grow: 1;
            padding: 20px;
            text-align: center;
            color: #888;
            font-size: 1.2em;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 200px;
        }

        .gradient-input {
            width: 100%;
            background-color: #1a1a1a;
            color: #fff;
            font-size: 1em;
            border: 2px solid transparent;
            background-image: linear-gradient(#1a1a1a, #1a1a1a), linear-gradient(to right, #335FFF, #335FFF);
            background-origin: border-box;
            background-clip: padding-box, border-box;
            transition: box-shadow 0.3s ease;
        }

        .gradient-input:focus {
            outline: none;
            box-shadow: 0 0 10px rgba(37, 244, 238, 0.3);
        }

        #search-input,
        #suggest-input {
            width: 100%;
            font-size: 1.1em;
            font-weight: bold;
            color: #fff;
            background-color: #1a1a1a;
            padding: 18px 25px;
            padding-right: 130px;
            border-radius: 50px;
            box-sizing: border-box;
            border: 2px solid transparent;
            background-image: linear-gradient(#1a1a1a, #1a1a1a), linear-gradient(to right, #335FFF, #335FFF);
            background-origin: border-box;
            background-clip: padding-box, border-box;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        #search-input:focus,
        #suggest-input:focus {
            outline: none;
            transform: scale(1.03);
            box-shadow: 0 0 10px rgba(37, 244, 238, 0.3);
        }

        #search-input::placeholder,
        #suggest-input::placeholder {
            color: #666;
        }

        #search-input {
            padding-left: 45px;
            padding-right: 25px;
        }

        .suggest-input-wrapper {
            position: relative;
            max-width: 500px;
            margin: 0 auto;
        }

        #suggest-input {
            padding-right: 130px;
        }

        #suggest-btn {
            position: absolute;
            top: 50%;
            right: 8px;
            transform: translateY(-50%);
            background-color: #335FFF;
            color: #fff;
            border: none;
            border-radius: 50px;
            padding: 12px 25px;
            font-weight: bold;
            font-size: 0.95em;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s ease;
        }

        #suggest-btn:hover {
            transform: translateY(-50%) scale(1.05);
            box-shadow: 0 4px 15px rgba(254, 44, 85, 0.4);
        }

        .burger-menu {
            width: 30px;
            height: 22px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            cursor: pointer;
            position: relative;
            z-index: 1002;
        }

        .burger-bar {
            width: 100%;
            height: 3px;
            background-color: #fff;
            border-radius: 3px;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .burger-menu.is-active .burger-bar:nth-child(1) {
            transform: translateY(9.5px) rotate(45deg);
        }

        .burger-menu.is-active .burger-bar:nth-child(2) {
            opacity: 0;
        }

        .burger-menu.is-active .burger-bar:nth-child(3) {
            transform: translateY(-9.5px) rotate(-45deg);
        }

        .mobile-nav-menu {
            background-color: #1a1a1a;
            border: 1px solid #333;
            position: absolute;
            top: 100%;
            width: calc(100% - 20px);
            left: 10px;
            margin-top: 10px;
            z-index: 999;
            border-radius: 15px;
            display: grid;
            grid-template-rows: 0fr;
            transition: grid-template-rows 0.5s ease-in-out,
                opacity 0.3s ease-in-out,
                visibility 0.3s ease-in-out;
            opacity: 0;
            visibility: hidden;
            overflow: hidden;
        }

        .mobile-nav-menu.is-open {
            grid-template-rows: 1fr;
            opacity: 1;
            visibility: visible;
        }

        .mobile-nav-menu>div {
            min-height: 0;
            display: flex;
            flex-direction: column;
        }

        .mobile-nav-menu a {
            color: #fff;
            text-decoration: none;
            font-weight: bold;
            font-size: 1.2em;
            padding: 20px 25px;
            border-bottom: 1px solid #2a2a2a;
            transition: background-color 0.2s ease;
        }

        .mobile-nav-menu a:last-child {
            border-bottom: none;
        }

        .mobile-nav-menu a:hover {
            background-color: #335FFF;
        }

        @media (max-width: 768px) {
            .nav-menu {
                display: none;
            }

            #burger-menu.hidden {
                display: flex !important;
            }
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .nav-action-btn {
            padding: 8px 18px;
            border-radius: 4px;
            font-weight: 600;
            font-size: 0.9em;
            text-decoration: none;
            border: 2px solid transparent;
            transition: all 0.2s ease;
        }

        .login-btn {
            background-color: transparent;
            color: #fff;
        }

        .login-btn:hover {
            background-color: #ffffff12;
            color: #ffffff;
        }

        .signup-btn {
            background-color: #673DE6;
            color: #fff;
        }

        .signup-btn:hover {
            background-color: #FFA722;
            transform: scale(1.05);
        }

        .mobile-auth-links {
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px solid #333;
            display: flex;
            flex-direction: column;
        }

        .mobile-auth-links a {
            text-align: center;
        }

        .mobile-signup-btn {
            background-color: #673DE6;
            margin-top: 10px;
            border-radius: 8px;
        }

        .mobile-signup-btn:hover {
            background-color: #7c55e9 !important;
        }

        @media (max-width: 768px) {}

        @media (min-width: 769px) {
            .mobile-auth-links {
                display: none;
            }
        }

        .nav-action-btn,
        .mobile-auth-links a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .nav-action-btn i,
        .mobile-auth-links i {
            display: inline-block;
            line-height: 1;
        }

        .nav-search-trigger {
            position: relative;
            display: flex;
            align-items: center;
            background-color: #11182763;
            border: 1.5px solid #374151;
            border-radius: 4px;
            padding: 8px 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            min-width: 180px;
            max-width: 350px;
            width: 100%;
            box-sizing: border-box;
        }

        .nav-search-trigger:hover {
            background-color: #111827;
        }

        .nav-search-trigger .search-icon {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            width: 20px;
            height: 20px;
        }

        .search-trigger-placeholder {
            color: #c3c2c2;
            font-size: 0.9em;
            flex-grow: 1;
            padding-left: 30px;
        }

        .search-trigger-shortcut {
            background-color: #3f4a5b;
            color: #d7d7d7;
            font-size: 0.75em;
            font-weight: bold;
            padding: 3px 6px;
            border-radius: 4px;
            opacity: 0.7;
        }

        @media (max-width: 768px) {
            .nav-search-trigger {
                width: auto;
                background-color: transparent;
                border: none;
                padding: 5px;
            }

            .search-trigger-placeholder,
            .search-trigger-shortcut {
                display: none;
            }

            .nav-search-trigger .search-icon {
                margin-right: 0;
                width: 28px;
                height: 28px;
                position: static;
                transform: none;
            }
        }

        @media (max-width: 1170px) {
            .nav-menu {
                display: none;
            }

            .nav-actions {
                display: none;
            }

            #burger-menu.hidden {
                display: flex !important;
            }

            .nav-search-trigger {
                min-width: auto;
            }
        }

        .nav-action-btn i,
        .mobile-auth-links i {
            display: inline-block;
            line-height: 1;
        }

        .nav-action-btn svg,
        .mobile-auth-links svg {
            width: 16px;
            height: 16px;
        }

        footer {

            background-color: #1f29375e;

            background-image:

                radial-gradient(ellipse at 100% 0%, #111827 0%, transparent 40%),

                radial-gradient(ellipse at 0% 50%, #111827 0%, transparent 35%),

                radial-gradient(ellipse at 50% 100%, #111827 0%, transparent 30%);

            padding: 60px 25px 0 25px;
            margin-top: 60px;
            border-top: 1px solid #374151;
        }

        .footer-container {
            max-width: 1280px;
            margin: 0 auto;
        }

        .footer-links-grid {
            display: grid;

            grid-template-columns: 1.5fr 1fr 1fr 1fr;
            gap: 40px;
            margin-bottom: 50px;
        }

        .footer-column h5 {
            font-size: 0.9em;
            font-weight: 700;
            color: #ffffff;
            margin: 0 0 15px 0;
            text-transform: uppercase;
            letter-spacing: 0.8px;
        }

        .footer-column ul {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .footer-column a {
            color: #9CA3AF;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.95em;
            transition: color 0.2s ease;
        }

        .footer-column a:hover {
            color: #ffffff;
        }

        .footer-logo-column img {
            height: 35px;
            margin-bottom: 15px;
        }

        .footer-logo-column p {
            color: #9CA3AF;
            font-size: 0.95em;
            line-height: 1.6;
            margin: 0 0 20px 0;
        }

        .footer-search-form {
            position: relative;
        }

        .footer-search-input {
            width: 100%;
            background-color: #111827;
            color: #fff;
            border: 1px solid #374151;
            border-radius: 8px;
            padding: 12px 15px;
            font-size: 0.9em;
            font-family: 'Poppins', sans-serif;
            box-sizing: border-box;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .footer-search-input:focus {
            outline: none;
            border-color: #673DE6;
            box-shadow: 0 0 0 3px rgba(103, 61, 230, 0.3);
        }

        .footer-bottom-bar {
            background-color: #673DE6;
            margin: 60px -25px 0 -25px;
            padding: 14px 25px;

            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .footer-credit {
            color: #e5e7eb;
            font-size: 0.9em;
            font-weight: 500;
        }

        .footer-socials {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .footer-socials a,
        .footer-socials a:visited {
            color: #FFFFFF;
            display: inline-block;
            transition: color 0.2s ease, transform 0.2s ease;
        }

        .footer-socials a:hover {
            color: #cccccc;
            transform: translateY(-2px);
        }

        .footer-socials a svg {
            width: 24px;
            height: 24px;
            fill: currentColor;
        }

        @media (max-width: 992px) {
            .footer-links-grid {

                grid-template-columns: 1fr 1fr;
            }
        }

        @media (max-width: 768px) {
            .footer-links-grid {

                grid-template-columns: 1fr;
                gap: 35px;
                text-align: center;
            }

            .footer-logo-column {
                order: -1;
                display: flex;
                flex-direction: column;
                align-items: center;
            }

            .footer-bottom-bar {
                flex-direction: column;
                gap: 20px;
            }
        }

        .page-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6);
            z-index: 1010;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.4s ease, visibility 0.4s ease;
        }

        .mobile-sidebar {
            position: fixed;
            top: 0;
            right: 0;
            width: 280px;
            height: 100%;
            background-color: #111827;
            border-left: 1px solid #374151;
            z-index: 1020;
            padding: 30px 20px;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            gap: 30px;
            transform: translateX(100%);
            transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            overflow-y: auto;

        }

        html.sidebar-open,
body.sidebar-open {
    overflow: hidden;
}

        body.sidebar-open .page-overlay {
            opacity: 1;
            visibility: visible;
        }

        body.sidebar-open .mobile-sidebar {
            transform: translateX(0);
        }

        .sidebar-auth {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        #sidebar-user-view {
    align-items: stretch; 
}

        .sidebar-auth .nav-action-btn {
            text-align: center;
            padding: 12px;
            font-size: 1em;
        }

        .sidebar-nav {
            display: flex;
            flex-direction: column;
            border-top: 1px solid #374151;
            padding-top: 20px;
        }

        body.user-logged-in .sidebar-nav {
    border-top: none;
    padding-top: 0;
}

        .sidebar-nav a {
            color: #d1d5db;
            text-decoration: none;
            font-size: 1.1em;
            font-weight: 600;
            padding: 15px 10px;
            border-radius: 8px;
            transition: background-color 0.2s ease, color 0.2s ease;
        }

        .sidebar-nav a:hover {
            background-color: #374151;
            color: #ffffff;
        }

        .main-content-area {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .auth-container {
        width: 100%;
        max-width: 450px;
        background-color: #1F2937;
        background-image: 
            radial-gradient(ellipse at 0% 0%, #111827 0%, transparent 50%),
            radial-gradient(ellipse at 100% 0%, #111827 0%, transparent 45%),
            radial-gradient(ellipse at 0% 100%, #111827 0%, transparent 40%),
            radial-gradient(ellipse at 100% 100%, #111827 0%, transparent 55%);
        border: 1px solid #374151;
        border-radius: 12px;
        padding: 40px;
        box-sizing: border-box;
    }
    .auth-title {
        font-size: 1.4em;
        font-weight: 600;
        text-align: center;
        margin: 0 0 5px 0;
        color: #fff;
    }
    .auth-subtitle {
        text-align: center;
        color: #9CA3AF;
        margin: 0 0 30px 0;
        font-size: 0.8em;
    }
    .form-group {
    position: relative; 
    margin-bottom: 20px;
}

    .form-group + .form-group {
    margin-top: 30px; 
}

    .form-group.with-divider {
    border-top: 1px solid #434f62;
}
    .form-group label {
        display: block;
        color: #D1D5DB;
        font-weight: 600;
        margin-bottom: 3px;
        margin-top: 30px;
        font-size: 0.8em;
        text-align: left;
    }
    .form-input {
    width: 100%;
    padding: 12px 15px;
    background-color: #2A3441;
    border: 1px solid #4B5563;
    border-radius: 6px;
    color: #fff;
    font-size: 1em;
    font-family: 'Poppins', sans-serif; 
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
    .form-input:focus {
        outline: none;
        border: 2px solid #673DE6; 
    }

    input:-webkit-autofill,
    input:-webkit-autofill:hover, 
    input:-webkit-autofill:focus, 
    input:-webkit-autofill:active {
        -webkit-text-fill-color: #ffffff !important;
        -webkit-box-shadow: 0 0 0px 1000px #2A3441 inset !important;
        transition: background-color 5000s ease-in-out 0s;
    }
    .form-action {
        text-align: right;
        margin-top: -10px;
        margin-bottom: 20px;
    }
    .forgot-password {
        color: #A5B4FC;
        font-size: 0.8em;
        font-weight: 600;
        text-decoration: none;
    }
    .forgot-password:hover {
        text-decoration: underline;
    }
    .auth-button {
        width: 100%;
        padding: 14px;
        background-color: #673DE6;
        color: #fff;
        border: none;
        border-radius: 4px;
        font-size: 0.9em;
        font-weight: 700;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }
    .auth-button:hover {
        background-color: #5a34c8;
    }

    .reset-instruction {
    font-size: 0.8em;
    color: #9CA3AF;
    text-align: left;
    margin-top: -5px;
    margin-bottom: 25px;
    line-height: 1.6;
}

    .social-login-divider {
        display: flex;
        align-items: center;
        margin: 30px 0;
    }
    .divider-line {
        flex-grow: 1;
        height: 1px;
        background-color: #374151;
    }
    .divider-text {
        color: #9CA3AF;
        padding: 0 15px;
        font-size: 0.8em;
        font-weight: 600;
    }
    .social-login-options {
        display: flex;
        gap: 15px;
    }
    .social-btn {
        flex-grow: 1;
        padding: 12px;
        border-radius: 6px;
        font-weight: 550;
        cursor: pointer;
        transition: background-color 0.2s ease;
        border: 1px solid #424b58;
        background-color: #1f2937;
        color: #fff;
        font-size: 0.9em;
        display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    }
    .social-btn:hover {
        background-color: #374151;
    }
    .verify-icon {
        margin-bottom: 10px;
    }
    .verify-text {
    color: #9CA3AF;
    font-size: 0.9em; 
    line-height: 1.7;
    margin: 20px 0 30px 0;
    text-align: left; 
}

.resend-container {
    margin-top: 30px;
    border-top: 1px solid #374151;
    padding-top: 30px;
    text-align: left;
}
.resend-question {
    color: #D1D5DB;
    font-weight: 600;
    margin: 0 0 15px 0;
    font-size: 0.8em; 
}
    .auth-switch-link {
        margin-top: 30px;
        text-align: center;
        color: #D1D5DB;
        font-size: 0.85em;
    }
    .auth-switch-link a {
    color: #673DE6; 
    font-weight: 600;
    text-decoration: none;
}
    .auth-switch-link a:hover {
        text-decoration: underline;
    }

    @media (max-width: 500px) {
        .auth-container {
            padding: 30px 25px; 
            border: none;
            background-color: transparent;
        }
        .auth-title {
            font-size: 1.6em; 
        }
        .main-content-area {
            padding-left: 10px;
            padding-right: 10px;
        }
        .social-login-options {
            flex-direction: column; 
        }
    }

    #user-profile-nav {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.nav-actions,
#user-profile-nav {
    display: none;
}

.profile-avatar-nav {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #647182;
    object-fit: cover;
    padding: 5px; 
    box-sizing: border-box; 
}
#user-profile-nav img.profile-avatar-nav {
        padding: 0;
    }
#sidebar-user-view {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0px;
    border-bottom: 1px solid #374151;
    margin-bottom: 15px;
}

.profile-avatar-sidebar {
    width: 42px;         
    height: 42px;        
    min-width: 42px;     
    border-radius: 50%;
    border: 2px solid #4b5563;
    padding: 4px;        
    box-sizing: border-box; 
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
}

.sidebar-username {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1em;
}

.sidebar-email {
    color: #9CA3AF;
    font-size: 0.85em;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 25px; 
    margin-top: 10px;
    background-color: #111827;
    border: 1px solid #374151;
    border-radius: 8px;
    width: 220px;
    z-index: 1100;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    padding: 8px 0;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-user-info {
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
}

.signed-in-as {
    font-size: 0.8em;
    color: #9CA3AF;
}

.dropdown-username {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95em;
    line-height: 1.2;
}

.dropdown-email {
    font-size: 0.8em;
    color: #9CA3AF;
    word-break: break-all;
}

.dropdown-divider {
    height: 1px;
    background-color: #374151;
    margin: 8px 0;
}

.sidebar-divider {
    height: 1px;
    background-color: #4b5563b5; /* Kaparehong mas kitang kulay */
    margin: 15px 0; /* Tinaasan ang espasyo para sa mobile */
}

.dropdown-link {
    padding: 10px 16px;
    color: #D1D5DB;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
}

.dropdown-link:hover {
    background-color: #374151;
    color: #ffffff;
}

.dropdown-link.logout {
    color: #fca5a5; 
}
.dropdown-link.logout:hover {
    background-color: #991b1b;
    color: #ffffff;
}

.sidebar-profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px; 
}

.sidebar-user-nav {
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 100%; 
}
.sidebar-user-nav a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    padding: 15px 10px; 
    border-radius: 8px; 
    transition: background-color 0.2s ease, color 0.2s ease; 
}
.sidebar-user-nav a:hover {
     color: #ffffff;
}
.sidebar-user-nav a#logout-btn-mobile {
    color: #fca5a5;
    margin-top: 10px;
}

.form-success-message {
    color: #4ade80; 
    font-weight: 600;
    font-size: 0.9em;
    text-align: center;
    margin-top: 20px;
}

.form-input::placeholder {
         font-family: 'Poppins', sans-serif;
         font-size: 0.9em;
         color: #ffffff;
         opacity: 0.2; 
     }

     .form-error-message {
    color: #fca5a5; 
    font-size: 0.8em;
    font-weight: 500;
    text-align: left;
    margin-top: 5px;
    display: none; 
    min-height: 1em; 
}

.form-input.input-error {
    border-color: #ef4444 !important; 
    box-shadow: 0 0 0 1px #ef4444; 
}

.form-input.input-error:focus {
    border: 2px solid #ef4444 !important;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-input {
    padding-right: 45px; 
}

.toggle-password-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF; 
}

.toggle-password-btn:hover {
    color: #ffffff; 
}

.toggle-password-btn svg {
    width: 20px;
    height: 20px;
}

.legal-content-container {
    width: 100%;
    max-width: 800px; 
    background-color: #1F2937;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 30px 40px;
    box-sizing: border-box;
    text-align: left; 
    margin: 20px 0;
}

.legal-content-container h1 {
    font-size: 2em;
    font-weight: 700;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #4B5563;
}

.legal-content-container h2 {
    font-size: 1.4em;
    font-weight: 600;
    color: #E5E7EB;
    margin-top: 35px;
    margin-bottom: 15px;
}

.legal-content-container h3 {
    font-size: 1.1em;
    font-weight: 600;
    color: #D1D5DB;
    margin-top: 25px;
    margin-bottom: 10px;
}

.legal-content-container p, 
.legal-content-container li {
    color: #D1D5DB;
    font-size: 0.95em;
    line-height: 1.8;
}

.legal-content-container a {
    color: #A5B4FC;
    text-decoration: none;
    font-weight: 600;
}

.legal-content-container a:hover {
    text-decoration: underline;
}

.legal-content-container ul {
    padding-left: 25px;
}

@media (max-width: 500px) {
    .legal-content-container {
        padding: 25px 20px;
    }
    .legal-content-container h1 {
        font-size: 1.6em;
    }
    .legal-content-container h2 {
        font-size: 1.2em;
    }
}

.form-group-agree {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px; 
}

.agree-text {
    font-size: 0.8em;
    color: #D1D5DB;
    text-align: left;
}

.agree-text a {
    color: #A5B4FC;
    font-weight: 600;
    text-decoration: none;
}

.agree-text a:hover {
    text-decoration: underline;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px; 
    height: 24px; 
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #4B5563;
    transition: .4s;
    border-radius: 34px;
    border: 2px solid transparent; 
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px; 
    width: 16px;  
    left: 4px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #673DE6; 
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.toggle-switch.input-error .slider {
    border-color: #ef4444 !important; 
}

#terms-error {
    margin-bottom: 20px; 
}

.auth-button.btn-cooldown {
    background-color: #4B5563; 
    color: #9CA3AF;
    cursor: not-allowed;
}

.auth-button.btn-cooldown:hover {
    background-color: #4B5563; 
}

.rc-anchor-light {
    background: #1f2937 !important;
    color: #000 !important;
}

.rc-anchor-light .rc-anchor-logo-text, .rc-anchor-light div a:link, .rc-anchor-light div a:visited {
    color: #ffffffd4 !important;
}

.dashboard-link-icon {
    width: 18px;  
    height: 18px; 
    flex-shrink: 0;
    color: #546070;
    transition: color 0.2s ease;
}

.dashboard-link:hover .dashboard-link-icon {
    color: #D1D5DB; 
}

.dashboard-link.active .dashboard-link-icon {
    color: #ffffff; 
}

.sidebar-user-nav a {

    display: flex;
    align-items: center;

    color: #d1d5db;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    padding: 15px 10px;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-user-nav .nav-icon {
    width: 20px;          
    height: 20px;         
    color: #546070;
    margin-right: 15px;
    flex-shrink: 0;       

}

.page-header.column-layout {
    width: 100%;
    display: flex;
    flex-direction: column; /* Gagawing vertical ang alignment */
    align-items: flex-start; /* Ilalagay lahat sa kaliwa */
    gap: 15px; /* Espasyo sa pagitan ng H2 at button */
    margin-bottom: 30px;
    padding-bottom: 15px;
}
#dashboard-content h2 {
    font-size: 1.5em;
    font-weight: 600;
    color: #E5E7EB;
    margin: 0;
}

.create-new-btn {
    background-color: #673DE6;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.create-new-btn:hover {
    background-color: #5a34c8;
}

.projects-list-container {
    width: 100%;
}

.projects-list-header, .project-item {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr; 
    gap: 20px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.projects-list-header {
    color: #9CA3AF;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0 20px 15px 20px;
    grid-template-columns: auto 3fr repeat(5, 1fr) auto !important;
}

.project-item {
    background-color: #1F2937;
    border: 1px solid #374151;
    border-radius: 6px;
    margin-bottom: 12px;
    padding: 13px;
    color: #D1D5DB;
    font-size: 0.8em;
    padding-left: 15px;
    align-items: center;
display: grid; /* Palitan ang display to grid */
    grid-template-columns: auto 3fr repeat(5, 1fr) auto; 
    align-items: center;
    gap: 10px;
}

.project-item > *:nth-child(n+3):nth-child(-n+7) {
    justify-self: center;
}

.project-stats-desktop {
    display: contents; /* Tratuhin ang mga anak nito na parang direct child ng grid */
}


/* Itago ang mobile-only elements sa desktop */
.project-details-collapsible, .project-footer-mobile {
    display: none;
}
.status-mobile-container {
    display: none !important;
}

/* --- MOBILE STYLES (Halimbawa: screen < 768px) --- */
@media (max-width: 768px) {
    /* Itago ang mga header na hindi kailangan */
    .projects-list-header .header-title:not(:nth-child(2)) {
        display: none;
    }

    .projects-list-header {
        padding-left: 15px;
    }

    /* Ayusin ang layout ng bawat item */
    .project-item {
       display: flex; /* Gawing flex para madaling i--wrap */
       flex-direction: column;
       align-items: stretch; /* I-stretch ang laman */
       gap: 0;
       position: relative; /* <-- DAGDAG ITO */
   }
    
    .project-main-info {
        padding: 15px;
    }

    .status-mobile-container {
        display: flex !important; /* Gamit ang !important para masigurong lalabas ito */
    }

    /* Itago ang desktop stats at actions sa main view */
    .project-stats-desktop {
           display: none;
       }

       .project-item .project-actions {
           display: block; /* <-- PALITAN MULA SA 'none' */
           position: absolute; /* <-- ITO ANG SUSI PARA MAPATONG */
           top: 8px; /* <-- Espasyo mula sa taas */
           right: 8px; /* <-- Espasyo mula sa kanan */
           z-index: 5; /* <-- Para masigurong nasa ibabaw ito */
       }

    /* Style para sa collapsible area */
    .project-details-collapsible {
        display: grid;
        grid-template-rows: 0fr; /* Simula sa pagiging sarado */
        transition: grid-template-rows 0.3s ease-out;
        background-color: #111827; /* Medyo darker na background */
    }
    
    .project-details-collapsible.expanded {
        grid-template-rows: 1fr; /* I-expand sa buong taas */
    }

    .collapsible-item-wrapper {
        overflow: hidden;
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; 
    }

    .project-details-collapsible.expanded .collapsible-item-wrapper {
        padding: 15px;
    }

    .collapsible-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.9em;
    }

    .collapsible-item strong {
        color: #9CA3AF;
    }

    /* Style para sa mobile footer */
    .project-footer-mobile {
        display: flex; /* Ipakita sa mobile */
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        border-top: 1px solid #374151;
        cursor: pointer;
        font-size: 0.85em;
        font-weight: 600;
        color: #A5B4FC;
    }
    
    .details-arrow {
        width: 18px;
        height: 18px;
        fill: currentColor;
        transition: transform 0.3s ease;
    }

    .project-footer-mobile.expanded .details-arrow {
        transform: rotate(180deg); /* I-rotate pataas kapag bukas */
    }
}

.project-item:hover {
    border: 1px solid #4B5563; 
    background-color: #243041; 
    transition: all 0.2s ease-in-out; 
}

.project-thumbnail {
    width: 66px;  
    height: 66px; 
    border-radius: 6px; 
    object-fit: cover; 
    background-color: #374151; 
    margin-right: 10px; 
}

.project-item, .projects-list-header {
    gap: 10px; /* Pwedeng i-adjust to 15px or 20px for more space */
    grid-template-columns: auto 3fr repeat(5, 1fr) auto !important; 
}



.project-name {
    font-weight: 600;
    color: #fff;
}

.project-status {
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    width: fit-content;
    text-align: center;
}

.status-approved {
    color: #4ade80; 
    background-color: rgba(74, 222, 128, 0.1); 
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 2px; 
}

.project-date {
    font-size: 0.8em;
    color: #9CA3AF;
    font-weight: 400; 
}

.create-form-container {
    max-width: 900px; 
}

.form-layout-grid {
    display: flex;
    gap: 40px;
}

.form-sidebar {
    flex: 0 0 240px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-steps-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-steps-container::before {
    content: '';
    position: absolute;
    top: 18px; 
    left: 17px; 
    width: 2px;
    height: calc(100% - 36px); 
    background-color: #374151;
    z-index: 1;
}

.sidebar-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 32px;  
    height: 32px;
    flex-shrink: 0;
    background-color: #1F2937;
    color: #9CA3AF;
    border: 2px solid #374151;
    border-radius: 8px; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.3s ease;
}

.step-text h4 {
    margin: 0 0 4px 0;
    color: #9CA3AF;
    font-weight: 600;
    transition: color 0.3s ease;
}

.step-text p {
    margin: 0;
    font-size: 0.85em;
    color: #4B5563;
    transition: color 0.3s ease;
}

.step-text.active h4 {
    color: #fff;
}

.step-number.active {
    background-color: #8760FD;
    border-color: #8760FD;
    color: #fff;
}

.step-number.completed {
    background-color: #374151;
    border-color: #3d546f;
    color: #fff; 
}

.step-number.completed svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.step-text.active h4 {
    color: #fff;
}

.step-text.active p {
    color: #9CA3AF;
}
.sidebar-step.active .step-text p {
    color: #9CA3AF;
}

.help-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #374151;
}
.help-section p {
    margin: 0 0 5px 0;
    font-size: 0.9em;
    font-weight: 600;
    color: #D1D5DB;
}
.help-section a {
    font-size: 0.8em;
    color: #A5B4FC;
}

.form-content {
    flex-grow: 1; 
}

@media (max-width: 768px) {
    .form-layout-grid {
        flex-direction: column;
    }
    .form-sidebar {
        flex-direction: row; 
        justify-content: center;
        flex: 0 0 auto;
    }
    .sidebar-steps-container::before {
        display: none; 
    }
    .help-section {
        display: none; 
    }
    .step-text p {
        display: none; 
    }
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-title {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 25px;
    color: #E5E7EB;
    text-align: left;
}

.form-input, select.form-input {
    background-color: #111827;
    border-color: #4B5563;
}

.form-input:focus, select.form-input:focus {
    background-color: #111827;
}

.code-input {

    font-size: 0.9em;
    resize: none;
}

#main-content {
    resize: none;
}

.conditional-fields {
    display: none;
}
.conditional-fields.active {
    display: block;
}

.form-group .thumbnail-uploader {
    width: 100%;
    box-sizing: border-box;
    border: 2px dashed #4B5563;
    border-radius: 8px;
    padding: 30px 20px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.thumbnail-uploader.input-error {
    border-color: #ef4444 !important; /* Gawing red ang dashed border */
    box-shadow: 0 0 0 1px #ef4444;    /* Para mas sigurado */
}

.thumbnail-uploader:hover {
    border-color: #673DE6;
    background-color: rgba(103, 61, 230, 0.1);
}

.thumbnail-uploader.has-content {
    cursor: default;
    padding: 0;
    border: 1px solid #4B5563;

    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9; 
    background-color: #000; 
}

.thumbnail-uploader.has-content video {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    position: absolute;
    top: 0;
    left: 0;
}

.thumbnail-uploader svg {
    width: 48px; 
    height: 48px; 
    color: #9CA3AF;
    margin-bottom: 12px; 
}

.thumbnail-uploader span {
    font-weight: 600;
    color: #D1D5DB;
}
.uploader-subtext {
    font-size: 0.8em;
    color: #9CA3AF;
    font-weight: 400 !important;
    margin-top: 5px;
    display: block; 
}

.form-btn {
    background-color: #673DE6; 
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600; 
    padding: 12px 25px; 
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-btn:hover {
    background-color: #5A34C8; 
}

.form-btn:disabled, 
.form-btn[disabled] {
    background-color: #374151 !important; /* Kulay Gray */
    color: #9CA3AF !important;             /* Kulay Gray Text */
    cursor: not-allowed !important;        /* Cursor na bilog na may slash (not allowed) */
    opacity: 0.7;                          /* Konting fade */
    box-shadow: none !important;
    transform: none !important;            /* Iwasan ang :active/hover effects */
}

.form-btn:disabled:hover, 
.form-btn[disabled]:hover {
    background-color: #374151 !important; /* Siguraduhin na hindi magbabago sa hover */
}

.form-btn:active {
    transform: translateY(1px); 
}

.form-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.btn-prev {
    background: #374151;
    box-shadow: none;
}

.btn-prev:hover {
    background: #4B5563;
    box-shadow: none;
}

.btn-prev:active {
    transform: translateY(2px);
    box-shadow: none;
}

.create-layout-wrapper {
    width: 100%;
    max-width: 1100px; 
}

.create-header h1 {
    font-size: 1.8em; 
    font-weight: 600; 
    color: #E5E7EB;
    margin: 0 0 20px 0;
    text-align: left;
}

.form-layout-grid {
    display: grid; 
    grid-template-columns: 280px 1fr; 
    gap: 25px;
    align-items: start; 
}

.form-sidebar {
    border-radius: 12px;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; 
}

.sidebar-steps-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-steps-container::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 16px;
    width: 2px;
    height: calc(100% - 36px);
    background-color: #374151;
    z-index: 1;
}

.sidebar-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    position: relative;
    z-index: 2;
    text-align: left;
    cursor: pointer; 
}

.step-number {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background-color: #111827; 
    color: #9CA3AF;
    border: 2px solid #374151;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.3s ease;
}

.step-text h4 {
    margin: 0 0 4px 0;
    color: #9CA3AF;
    font-weight: 600;
    transition: color 0.3s ease;
}

.step-text p {
    margin: 0;
    font-size: 0.85em;
    color: #4B5563;
    transition: color 0.3s ease;
}

.sidebar-step.active .step-text h4 {
    color: #fff;
}
.sidebar-step.active .step-text p {
    color: #9CA3AF;
}

.help-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #374151;
    text-align: left; 
}
.help-section p {
    margin: 0 0 5px 0;
    font-size: 0.9em;
    font-weight: 600;
    color: #D1D5DB;
}
.help-section a {
    font-size: 0.8em;
    color: #A5B4FC;
}

.form-content {
    background-color: #1F2937;
    background-image: 
        radial-gradient(ellipse at 0% 0%, #111827 0%, transparent 50%),
        radial-gradient(ellipse at 100% 0%, #111827 0%, transparent 45%),
        radial-gradient(ellipse at 0% 100%, #111827 0%, transparent 40%),
        radial-gradient(ellipse at 100% 100%, #111827 0%, transparent 55%);
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 30px 40px;
}

@media (max-width: 900px) { 
    .form-layout-grid {
        grid-template-columns: 1fr; 
    }
    .form-sidebar {
        order: -1; 
    }
    .sidebar-steps-container {
        flex-direction: row; 
        justify-content: center;
        gap: 10px;
    }
     .sidebar-steps-container::before {
        display: none; 
    }
    .help-section {
        display: none; 
    }
    .step-text {
        display: none; 
    }
}

.category-cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.category-card {
    background-color: #111827;
    border: 1.5px solid #374151;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;

    text-align: left;
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-card.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none; 
}

.card-icon-wrapper {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background-color: #1F2937; 
    color: #9CA3AF;
    transition: all 0.2s ease;
}

.card-icon-wrapper svg {
    width: 28px;
    height: 28px;
}

.category-card:hover .card-icon-wrapper {
    color: #fff;
}

.category-card.selected .card-icon-wrapper {
    color: #fff;
    background-color: #8760FD; 
}

.category-card:hover {
    border-color: #43556f;
        background-color: #232e40;

}

.category-card.selected {
    border-color: #8760FD;
    background-color: #2c2a5a;
}

.category-card h4 {
    margin: 0 0 5px 0;
    color: #fff;
}

.category-card p {
    margin: 0;
    font-size: 0.85em;
    color: #9CA3AF;
}

.form-navigation-btns {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
}

body.edit-mode #step-2 .btn-prev {
    display: none;
}

body.edit-mode #step-2 .form-navigation-btns {
    justify-content: flex-end;
}

.textarea-wrapper {
    position: relative;
}

#content-description {
    resize: none;
    padding-bottom: 25px; 
}

.char-counter {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 0.75em;
    color: #9CA3AF;
    pointer-events: none; 
}

.char-counter.limit-reached {
    color: #ef4444;
    font-weight: 600;
}

.keywords-container {
    position: relative; 
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    background-color: #111827;
    border: 1px solid #4B5563;
    border-radius: 6px;
    padding: 8px;
    cursor: text;
}

.keywords-container:focus-within {
    border-color: #673DE6;
    box-shadow: 0 0 0 1px #673DE6;
}

#keywords-input {
    flex-grow: 1;
    border: none;
    background: none;
    outline: none;
    padding: 4px;
    color: #fff;
    font-size: 1em;
    font-family: 'Poppins', sans-serif;
    min-width: 150px; 
}

#keywords-input::placeholder {
    color: #6b7280;
    font-size: 0.9em; 
}

.keyword-pill {
    display: flex;
    align-items: center;
    background-color: #374151;
    color: #E5E7EB;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 500;
}

.remove-keyword {
    margin-left: 8px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    background-color: #4B5563;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-weight: bold;
    line-height: 1;
    transition: background-color 0.2s;
}

.remove-keyword:hover {
    background-color: #ef4444;
    color: #fff;
}

.keywords-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.add-keyword-btn {
    background: none;
    border: none;
    color: #A5B4FC;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    transition: background-color 0.2s ease;
}

.add-keyword-btn:hover {
    background-color: rgba(165, 180, 252, 0.1);
}

.add-keyword-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.keywords-container.input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 1px #ef4444;
}

.form-instruction-text {
    font-size: 0.8em;
    color: #9CA3AF;
    margin: -4px 0 10px 0; 
    text-align: left; 
}

.required-asterisk {
    color: #ef4444; 
    margin-left: 4px;
    font-weight: 600;
    font-size: 1.1em; 
    vertical-align: middle; 
}

.tooltip-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: -4px; 
}

.info-icon {
    width: 22px; 
    height: 19px; 
    color: #9CA3AF; 
    cursor: help; 
    transition: color 0.2s ease;
}

.info-icon:hover {
    color: #E5E7EB; 
}

.tooltip-text {
    position: absolute;
    bottom: 100%; 
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px; 

    width: 220px; 
    background-color: #111827; 
    color: #D1D5DB;
    text-align: left;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #4B5563;
    z-index: 10;

    font-size: 0.8em; 
    font-weight: 400; 
    line-height: 1.5;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none; 
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%; 
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #111827 transparent transparent transparent; 
}

.tooltip-container:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
}

.form-btn-switch {
    background: none;
    border: none;
    color: #A5B4FC;
    font-weight: 600;
    font-size: 0.8em;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.2s ease;

    display: block;
    margin-left: auto;
}

.form-btn-switch:hover {
    background-color: rgba(165, 180, 252, 0.1);
}

.codes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.code-reward-pair {
    display: flex;
    align-items: center;
    gap: 10px;
}

.code-reward-pair input:first-child {
    flex: 1; 
}

.code-reward-pair input:last-of-type {
    flex: 2; 
}

.remove-code-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.5em;
    line-height: 1;
    transition: background-color 0.2s ease;
}

.remove-code-btn:hover {
    background-color: #ef4444;
    color: #fff;
}

.add-code-btn {
    background: none;
    border: none;
    color: #A5B4FC;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    transition: background-color 0.2s ease;
    text-align: left; 
    display: block; 
}

.add-code-btn:hover {
    background-color: rgba(165, 180, 252, 0.1);
}

.collapse-arrow {
    width: 16px;
    height: 16px;
    color: #9CA3AF;
    transition: transform 0.3s ease;
}

.collapsible-header.active .collapse-arrow {
    transform: rotate(180deg);
}

.collapsible-content {
    display: grid;
    grid-template-rows: 0fr; 
    transition: grid-template-rows 0.1s ease-out;
}

.collapsible-content.open {
    grid-template-rows: 1fr; 
}

.collapsible-content > div {
    overflow: hidden;
}

.btn-publish svg {
    width: 15px;
    height: 15px;
}

.step-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: baseline; 
    margin-bottom: 25px;
}
.step-title-wrapper .step-title {
    margin-bottom: 0; 
}

.form-btn-link {
    background: none;
    border: none;
    color: #A5B4FC;
    font-weight: 600;
    font-size: 0.85em;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;

    display: inline-flex;
    align-items: center;
    gap: 6px; 
}

.form-btn-link svg {
    width: 14px; 
    height: 14px;
    stroke-width: 2.5; 
}
.form-btn-link:hover {
    background-color: rgba(165, 180, 252, 0.1);
}

#serp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
body.serp-modal-open {
    overflow: hidden;
}

#serp-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

#serp-modal-container {
    width: 100%;
    max-width: 600px;
    background-color: #1F2937; 
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 20px;
    box-sizing: border-box;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
#serp-modal-overlay.visible #serp-modal-container {
    transform: scale(1);
}

.serp-preview {
    font-family: 'Poppins', sans-serif !important;
    text-align: left;
}

.serp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.serp-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.serp-favicon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}
.serp-site-info {
    display: flex;
    flex-direction: column;
}
.serp-site-name {
    color: #e8eaed;
    font-size: 14px;
}
.serp-breadcrumb {
    color: #9aa0a6;
    font-size: 12px;
}
.serp-dots {
    width: 20px;
    height: 20px;
    color: #9aa0a6;
}

.serp-title {
    display: block;
    color: #8ab4f8; 
    font-size: 20px;
    font-weight: 400;
    text-decoration: none;
    margin-bottom: 4px;
}
.serp-title:hover {
    text-decoration: underline;
}

.serp-description {
    color: #bdc1c6; 
    font-size: 14px;
    line-height: 1.57;
    margin: 0;
}

.serp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #374151;
}

.serp-modal-header h4 {
    margin: 0;
    font-size: 1em;
    font-weight: 600;
    color: #E5E7EB;
}

.close-modal-btn {
    background-color: rgba(255, 255, 255, 0.1); 
    border: 1px solid transparent; 
    border-radius: 6px;
    color: #fff;
    font-size: 1.6em; 
    font-weight: 400; 
    cursor: pointer;
    width: 30px;  
    height: 30px; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
}

.close-modal-btn:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.2); 
    border-color: #4B5563; 
}

#video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#video-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

#video-modal-container {
    width: 100%;
    max-width: 500px; 
    background-color: #1F2937;
    border: 1px solid #374151;
    border-radius: 12px;
    box-sizing: border-box;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    overflow: hidden; 
}
#video-modal-overlay.visible #video-modal-container {
    transform: scale(1);
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #1F2937; 
    border-bottom: 1px solid #374151;
}
.video-modal-header h4 {
    margin: 0;
    font-size: 1em;
    font-weight: 600;
    color: #E5E7EB;
}

.video-modal-body {
    padding: 20px 20px 10px 20px;
}

.video-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    background-color: #1F2937;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.modal-btn.btn-primary {
    background-color: #673DE6;
    color: #fff;
}
.modal-btn.btn-primary:hover {
    background-color: #5a34c8;
}
.modal-btn.btn-secondary {
    background-color: #374151;
    color: #fff;
}
.modal-btn.btn-secondary:hover {
    background-color: #4B5563;
}

.video-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

}

.video-controls .form-btn-link {
    background: none;
    border: none;
    font-weight: 600;
    font-size: 0.85em;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    color: #A5B4FC; 
}

.video-controls .form-btn-link:hover {
    background-color: rgba(165, 180, 252, 0.1);
}

.video-controls .form-btn-link.delete {
    background-color: #ff2d2d80; 
    color: #fff;
}

.video-controls .form-btn-link.delete:hover {
    background-color: #dc2626; 
}

.video-controls .form-btn-link.delete {
    background-color: #ff4545d2; 
    color: #fff;
    border-color: transparent;
}

.video-controls .form-btn-link.delete:hover {
    background-color: #dc2626; 
}
.video-controls .form-btn-link.delete {
    color: #ffffff; 
}
.video-controls .form-btn-link.delete:hover {
    background-color: rgba(252, 165, 165, 0.1);
}
.publish-actions {
    display: flex;
    gap: 10px; 
}

.btn-draft {
    background-color: #374151; 
    color: #E5E7EB;
}

.btn-draft:hover {
    background-color: #4B5563; 
}

.collapsible-header:hover label {
text-decoration: underline;
text-decoration-thickness: 2px; 
}

.pill {
    font-weight: 600;
    padding: 0 10px;      /* Pinalitan para alisin ang vertical padding */
    height: 24px;         /* Itatakda natin ang taas */
    line-height: 24px;    /* Ise-center nito ang text vertically */
    border-radius: 50px !important;   /* Binawasan para mas modern */
    font-size: 0.75em;    /* Binawasan para magkasya sa bagong taas */
    width: fit-content;
    text-align: center;
    text-transform: capitalize;
}


.status-published {
    color: #4ade80; 
    background-color: rgba(74, 222, 128, 0.1); 
}
.status-draft {
    color: #fde047; 
    background-color: rgba(253, 224, 71, 0.1); 
}
.status-pending {
    color: #93c5fd; 
    background-color: rgba(147, 197, 253, 0.1); 
}

.category-script {
    color: #c4b5fd; 
    background-color: rgba(196, 181, 253, 0.1); 
}
.category-blog {
    color: #6ee7b7; 
    background-color: rgba(110, 231, 183, 0.1); 
}
.category-codes {
    color: #fcd34d; 
    background-color: rgba(252, 211, 77, 0.1); 
}
.category-tutorial {
    color: #93c5fd; 
    background-color: rgba(147, 197, 253, 0.1); 
}

.projects-list-header.with-dividers .header-title:nth-child(n+3)::before {
    content: '|';
    color: #4B5563; 
    margin-right: 20px; 
    font-weight: normal; 
}



.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

#image-modal-container, .image-modal-container {
    background-color: #1F2937;
    border: 1px solid #374151;
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    position: relative; /* <-- SIGURADUHING NANDITO ITO */
}

.image-modal-overlay.visible #image-modal-container, .image-modal-overlay.visible .image-modal-container {
    transform: scale(1);
}

.image-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #374151;
    flex-shrink: 0;
}

#image-modal-title {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #E5E7EB;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

 .image-modal-header h4 {
        margin: 0;
    }


.image-modal-content {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

#image-modal-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 6px;
    object-fit: contain;
}

#image-modal-message {
    color: #9CA3AF;
    font-size: 1.1em;
    font-weight: 500;
}

#image-modal-content iframe {
    width: 100%;
    aspect-ratio: 16 / 9; /* Para mapanatili ang video ratio */
    border: none;
    border-radius: 6px;
}

.project-actions {
    position: relative; 
    justify-self: end; 
}

.project-options-btn {
    background: none;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    transition: background-color 0.2s;
}

.project-options-btn:hover {
    background-color: #374151;
    color: #fff;
}

.project-options-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background-color: #2a3441; 
    border: 1px solid #4B5563;
    border-radius: 8px;
    width: 180px;
    z-index: 10;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    padding: 6px;
    display: flex;
    flex-direction: column;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease-out;
}

.project-options-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 4px;
    color: #D1D5DB;
    font-size: 0.85em;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.option-item:hover {
    background-color: #673DE6;
    color: #fff;
}

.option-item svg {
    width: 16px;
    height: 16px;
}

.option-divider {
    height: 1px;
    background-color: #4B5563;
    margin: 6px 0;
}

.option-item.delete:hover {
    background-color: #ef4444; 
    color: #fff;
}

body.edit-mode #step-2 .btn-prev {
    display: none;
}
body.edit-mode #step-2 .form-navigation-btns {
    justify-content: flex-end;
}

#original-form-content-holder {
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px); 
    transition: opacity 0.5s ease, transform 0.5s ease; 
}

body.edit-mode .category-card {
    cursor: not-allowed;
    pointer-events: none; 
    opacity: 0.4;
}

body.edit-mode .category-card.selected {
    opacity: 1; 
}

body.edit-mode .category-card:hover {

    border-color: #374151;
    background-color: #111827;
}

#edit-mode-note {
    display: none; 
}

body.edit-mode #edit-mode-note {
    display: block; 
}
#image-modal-content {
    padding: 0;
    overflow: hidden;
    position: relative;
    width: 100%; /* Siguraduhin na 100% ang width */
    aspect-ratio: 16 / 9; /* <-- ITO ANG SUSI */
}


#modal-image-container, #modal-video-container {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    transition: transform 0.4s ease-in;
}


#modal-slider-wrapper {
    display: flex;
    position: relative;
    width: 100%; /* Gawing 100% lang */
    height: 100%;
    transition: transform 0.4s ease-in-out;
}

#modal-image-container, #modal-video-container {
    position: absolute; /* I-absolute position sila para magpatong */
    top: 0;
    left: 0;
    width: 100%; /* Gawing 100% ang lapad ng bawat isa */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    transition: transform 0.4s ease-in-out; /* Ito ang para sa sliding animation */
}

#modal-image-container {
    transform: translateX(0%); /* Naka-position sa view */
}

#modal-video-container {
    transform: translateX(100%); /* Nakatago sa kanan */
}

#modal-video-container iframe,
#modal-video-container video {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s; /* Magsisimula ang animation after 0.3s */
}

#modal-video-container.is-active iframe,
#modal-video-container.is-active video {
    opacity: 1;
    transform: translateY(0);
}

.modal-arrow {
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    background-color: rgba(31, 41, 55, 0.6);
    border: 1px solid #4B5563;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background-color 0.2s ease;
    z-index: 10;
}

.modal-arrow:hover {
    background-color: rgba(55, 65, 81, 0.8);
}

.modal-arrow svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

#modal-arrow-prev {
    left: 20px;
}

#modal-arrow-next {
    right: 20px;
}

#publish-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#publish-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

#publish-modal-container {
    width: 100%;
    max-width: 450px; /* Mas maliit na modal para sa confirmation */
    background-color: #1F2937;
    border: 1px solid #374151;
    border-radius: 12px; 
    box-sizing: border-box;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    overflow: hidden;
}

#publish-modal-overlay.visible #publish-modal-container {
    transform: scale(1);
}

.project-stat-item {
    display: flex;
    align-items: center;
    gap: 6px; /* Espasyo sa pagitan ng icon at numero */
    justify-content: center; /* I-center ang content */
}

.stat-icon {
    width: 16px;
    height: 16px;
    color: #9CA3AF; /* Kulay ng icon */
}

.stat-icon.dislike {
    transform: rotate(180deg); /* I-rotate ang dislike icon */
}

.create-new-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.create-new-btn svg {
    width: 16px;
    height: 16px;
}

.create-new-btn.bottom-btn svg {
    width: 16px;
    height: 16px;
}

.script-code-container:empty,
.codes-introduction:empty,
.game-codes-section:has(.codes-table:empty) {
    display: none;
}

.post-page-container {
    display: block; /* <-- IDAGDAG ITO */
    width: 100%;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 25px;
    box-sizing: border-box;
}

.post-layout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Mas malaki ang kaliwa (1.5) kaysa sa kanan (1) */
    gap: 25px;
    align-items: stretch;
    margin-bottom: 40px;
}
.post-thumbnail-container,
.post-details-container {
    background-color: #1F2937;
    /* --- IDAGDAG ANG MGA LINYANG ITO --- */
    background-image: 
        radial-gradient(ellipse at 0% 0%, #111827 0%, transparent 50%),
        radial-gradient(ellipse at 100% 0%, #111827 0%, transparent 45%),
        radial-gradient(ellipse at 0% 100%, #111827 0%, transparent 40%),
        radial-gradient(ellipse at 100% 100%, #111827 0%, transparent 55%);
    /* --- WAKAS NG MGA BAGONG LINYA --- */
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 25px; 
    box-sizing: border-box;
}


.post-thumbnail-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background-color: #1F2937;
    border: 1px solid #374151;
    padding: 25px; /* <-- MAHALAGA: DAPAT NANDITO ANG PADDING */
    box-sizing: border-box;
}


.post-thumbnail-container {
    grid-column: 1 / 2;
}
.post-details-container {
    grid-column: 2 / 3;
}

.post-thumbnail-image, 
.video-embed-wrapper, 
.post-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* Tinitiyak na buo ang imahe */
    border-radius: 12px;      /* Ito ang magbibigay ng bilog na kanto sa imahe/video */
    overflow: hidden;         /* Tinitiyak na susunod ang laman (tulad ng iframe) */
    background-color: #111827; /* <-- IDAGDAG ITO para sa background ng espasyo */
}

/* Siguraduhin na ang iframe ay sumusunod din */
.video-embed-wrapper iframe {
    border-radius: 12px;
}
.video-embed-wrapper iframe {
    width: 100%;
    height: 100%;
}

.post-details-container {
    text-align: left;
}

.post-title {
    font-weight: 700;
    color: #fff;
    margin: 0 0 5px 0;
}

.post-description {
    font-size: 0.9em; /* Binago */
    color: #9CA3AF;
}

.author-and-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
}



.author-avatar-placeholder {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #7b8ba1;
    padding: 5px;
    box-sizing: border-box;
    color: #9CA3AF;
}

.author-username {
        font-weight: 600;
        color: #E5E7EB;
        text-decoration: none; /* <-- Aalisin ang underline */
        transition: color 0.2s ease; /* <-- Para smooth ang hover */
    }

    .author-username:hover {
        color: #fff; /* <-- Medyo liliwanag kapag tinapat ang mouse */
        text-decoration: underline; /* <-- Lalabas ang underline sa hover */
    }

.post-interactions {
    display: flex;
    gap: 10px;
}

.interaction-btn {
    background-color: #374151;
    color: #D1D5DB;
    border: none;
    border-radius: 6px;
    padding: 8px 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.interaction-btn:hover {
    background-color: #4B5563;
}

.interaction-btn i {
    font-size: 1.1em;
}

.post-main-content {
    margin-top: 30px;
    text-align: left;
}

.post-section {
    margin-bottom: 35px;
}

.post-section h3 {
    font-size: 1.3em;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #374151;
}

.code-display {
    width: 100%;
    box-sizing: border-box;
    background-color: #111827;
    color: #E5E7EB;
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 15px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    min-height: 150px;
    resize: vertical;
}

.content-container {
    color: #D1D5DB;
    line-height: 1.8;
}
.content-container p { margin: 0 0 1em 0; }
.content-container h2, .content-container h3, .content-container h4 { color: #fff; }

.codes-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #1F2937;
    border: 1px solid #374151;
    border-radius: 6px;
    overflow: hidden;
}
.codes-table th, .codes-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #374151;
        color: #E5E7EB !important;

}
.codes-table th {
    background-color: #374151;
    font-weight: 600;
    color: #E5E7EB;
}
.codes-table tr:last-child td {
    border-bottom: none;
}
.codes-table.expired td {
    color: #9CA3AF;
    text-decoration: line-through;
}

@media (max-width: 768px) {
    .post-layout-grid {
        grid-template-columns: 1fr;
    }
    .post-thumbnail-container {
        aspect-ratio: 16 / 9;
    }
    .author-and-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

.post-meta-section {
    padding-top: 20px;
    border-top: 1px solid #374151;
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.posted-by-container {
    text-align: left;
}

.posted-by-label {
    font-size: 0.9em;
    color: #a5b4fc; /* <-- PALITAN ITO */
    font-weight: 600; /* <-- IDAGDAG ITO */
}

.author-and-follow {
    display: flex;
    align-items: center;
    gap: 15px; /* Espasyo sa pagitan ng author info at Follow button */
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-details-container {
    display: flex; /* Ito ang susi para gumana ang flexbox sa loob */
    flex-direction: column; /* Para maging vertical ang alignment ng children */
    transition: transform 0.2s ease-in-out;
    min-width: 0;
}

.post-details-container:hover {
    transform: scale(1.02);
}

.details-content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Itutulak ang footer sa baba */
    flex-grow: 1; /* Para umokupa ng buong available space */
}

/* Bawasan ang laki at kapal ng H1 */
.post-title {
    font-size: 1.5em; 
    font-weight: 700; /* Medyo makapal pa rin para title */
}
.post-meta-section {
    padding-top: 0;
    border-top: none;
    margin-top: 0;
    display: block; /* Ginawang block para sa bagong layout */
}

/* Ayusin ang itsura ng icon-only buttons */
.interaction-btn.icon-only {
    background: none;
    padding: 8px; /* Tinaasan ng konti para sa spacing */
    border-radius: 6px; /* Gawing pareho sa dashboard */
    color: #9CA3AF;
    display: flex; /* Idagdag para ma-align ang icon at text */
    align-items: center; /* Idagdag para ma-align ang icon at text */
    gap: 8px; /* Idagdag para sa espasyo ng icon at text */
}
.interaction-btn.icon-only .stat-icon {
    width: 18px; /* I-adjust ang laki ng SVG */
    height: 18px;
    /* Ang kulay at rotation ay kukunin na mula sa existing .stat-icon at .dislike rules */
}

.interaction-btn.icon-only:hover {
    background-color: #374151;
    color: #fff;
}
.interaction-btn.icon-only span {
    font-size: 0.9em;
    font-weight: 600;
}
.interaction-btn.icon-only i {
    font-size: 1.2em; /* Palakihin nang bahagya ang icon */
}


.play-on-roblox-btn:hover {
    background-color: #5a34c8;
}

.details-top-section {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #374151;
}

.details-middle-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* ITO LANG ANG BAGUHIN */
    margin-bottom: 20px;
}

.details-middle-section .posted-by-container {
    display: flex; /* Gawing flex para mapagdikit ang children */
    align-items: center;
    gap: 15px; /* Espasyo sa pagitan ng "Posted by" block at "Follow" button */
}

.author-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* I-align lahat sa kaliwa */
    gap: 8px;
}

.follow-btn {
    background-color: #374151;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.85em;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.follow-btn:hover {
    background-color: #4B5563;
}

.details-actions-footer {
    margin-top: auto; /* Ito ang magic na magtutulak sa kanya pababa */
}

.play-on-roblox-btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #673DE6;
    color: #fff;
    padding: 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 20px;
    transition: background-color 0.2s ease;
    box-sizing: border-box; /* <-- IDAGDAG LANG ITONG LINYA */
}

.play-on-roblox-btn:hover {
    background-color: #5a34c8;
}

.details-bottom-section {
    margin-top: 25px;
    display: flex;
    justify-content: space-around;
    align-items: flex-start; /* I-align sa taas ang mga group */
}

.interaction-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.interaction-btn.icon-only {
    padding: 8px;
    color: #9CA3AF;
    background: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.interaction-btn.icon-only:hover {
    background-color: #374151;
    color: #fff;
}

.interaction-btn.icon-only svg {
    width: 26px;
    height: 26px;
}

.interaction-btn.like-btn svg,
.interaction-btn.dislike-btn svg {
    width: 26px; /* Mas malaking size para sa like/dislike */
    height: 26px;
}

.interaction-btn.report-btn,
.interaction-btn.report-btn:hover {
    color: #ef4444; /* Kulay red */
}

.interaction-count {
    font-size: 0.8em;
    font-weight: 600;
    color: #9CA3AF;
}

.content-box {
    background-color: #1F2937;
    /* --- IDAGDAG LANG ANG LINES SA IBABA --- */
    background-image: 
        radial-gradient(ellipse at 0% 0%, #111827 0%, transparent 50%),
        radial-gradient(ellipse at 100% 0%, #111827 0%, transparent 45%),
        radial-gradient(ellipse at 0% 100%, #111827 0%, transparent 40%),
        radial-gradient(ellipse at 100% 100%, #111827 0%, transparent 55%);
    /* --- HANGGANG DITO --- */
    border: 1px solid #374151;
    border-radius: 8px;
    margin-bottom: 30px;
    overflow: hidden; 
}
.box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #374151;
    background-color: #11182745; /* Konting kulay para sa header */
}

.box-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #E5E7EB;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.header-btn {
    background-color: #374151;
    color: #D1D5DB;
    border: none;
    border-radius: 4px;
    padding: 8px 18px; /* <-- PALITAN MULA 6px 14px */
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
display: inline-flex; /* <-- IDAGDAG ITO */
    align-items: center;  /* <-- IDAGDAG ITO */
    gap: 8px;             /* <-- IDAGDAG ITO para sa espasyo */
    border: 1px solid transparent; /* <-- IDAGDAG ITO para sa alignment */
}

.header-btn:hover {
    background-color: #4B5563;
    color: #fff;
}

.box-body {
    padding: 20px;
}

/* Ayusin natin ang dating textarea style para bumagay sa bagong container */
.code-display {
    background-color: transparent;
    border: none;
    min-height: 100px; /* Bawasan natin para di masyadong malaki by default */
    padding: 0; /* Alisin ang padding dahil nasa .box-body na */
    color: #9CA3AF; /* Gawing medyo lighter para mas madaling basahin */
}

.header-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 2; /* <-- IDAGDAG ITO PARA MAGING UNIFORM ANG KAPAL */
}

/* Style para sa "Copy Script" button */
.copy-btn {
    background-color: rgba(101, 56, 236, 0.235); /* #673DE6 na may 15% opacity */
    border: 1.5px solid #673DE6;
    color: #A5B4FC; /* Isang light purple para bumagay */
}

.copy-btn:hover {
    background-color: rgba(103, 61, 230, 0.3); /* Mas medyo visible sa hover */
}

/* Style para sa "Download" button */
.download-btn {
    background-color: #673DE6;
    color: #ffffff;
}

.download-btn:hover {
    background-color: #5a34c8; /* Darker shade on hover */
}

pre[class*="language-"],
code[class*="language-"] {
    background: none !important; /* Pinakamahalaga: Alisin ang background */
    text-shadow: none !important; /* Alisin ang text shadow kung meron */
    padding: 0 !important;
    margin: 0 !important;
    white-space: pre-wrap;   /* Para mag-wrap ang mahabang linya ng code */
    word-break: break-all;   /* Para piliting mag-wrap kung kailangan */
}

/* 
   Ang dating .code-display ay para sa textarea, pero gagamitin natin
   ito para siguraduhing ang bagong <pre> tag ay umaakto tulad ng dati.
   Palitan natin ito.
*/
.box-body .code-display {
    /* Ang .code-display mo dati ay para sa textarea, i-adjust natin */
    display: block; /* Tiyakin na block-level element ito */
    width: 100%;
    box-sizing: border-box;
    font-family: 'Courier New', Courier, monospace; /* Panatilihin ang code font */
    font-size: 0.9em;
    min-height: 0; /* Alisin ang min-height dahil <pre> na ito */
    color: #f8f8f2; /* Default na kulay ng text mula sa Okaidia theme */
    resize: none; /* Alisin ang resize handle */
}

/* 
   Ito ang magbibigay ng kulay sa iba't ibang parte ng script.
   Maaari mong i-adjust ang mga kulay na ito kung gusto mo.
   Ito ay base sa Okaidia theme pero mas pinatingkad.
*/
.token.string {
    color: #e6db74; /* Kulay para sa text sa loob ng "quotes" */
}

.token.function {
    color: #66d9ef; /* Kulay para sa mga function tulad ng 'HttpGet' */
}

.token.keyword {
    color: #f92672; /* Kulay para sa keywords tulad ng 'game' */
}

.token.punctuation {
    color: #f8f8f2; /* Kulay para sa colon, parenthesis, etc. */
}



.explanation-box {
    background-color: #1f29378f  !important;
    background-image: none !important; /* Tinitiyak na walang gradient */
}

.expandable-content {
    position: relative;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out; /* Para sa smooth animation */
}

/* Ito ang itsura kapag NAKASARA */
.expandable-content.collapsed {
    max-height: 200px; /* Limitahan ang taas. Pwede mong i-adjust. */
}

/* Ito ang itsura ng fade effect kapag NAKASARA */
.expandable-content.collapsed .fade-overlay {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px; /* Taas ng fade */
    background: linear-gradient(to bottom, transparent, #182230 );
    pointer-events: none; /* Para ma-click pa rin ang text sa likod kung sakali */
}

/* Button para sa "Read More / Read Less" */
.expand-btn {
    display: table; /* Para mag-adjust ang width sa content */
    margin: 15px auto 0 auto; /* Itaas na margin, at auto sa kaliwa't kanan para mag-center */
    padding: 8px 25px; /* Inayos ang padding para mas maganda ang itsura */
    background-color: #374151;
    color: #E5E7EB;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.expand-btn:hover {
    background-color: #4B5563;
}



#status-confirm-modal-overlay, #profile-confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#status-confirm-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

#status-confirm-modal-container, #profile-confirm-modal-container {
    width: 100%;
    max-width: 450px;
    background-color: #1F2937;
    border: 1px solid #374151;
    border-radius: 12px;
    box-sizing: border-box;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    overflow: hidden;
}

#status-confirm-modal-overlay.visible #status-confirm-modal-container, #profile-confirm-modal-overlay.visible #profile-confirm-modal-container {
    transform: scale(1);
}

.sidebar-header-title {
    font-size: 0.8em; /* Tinaasan natin nang bahagya para mas mabasa */
    font-weight: 700; /* Ginawang mas makapal */
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    pointer-events: none;
    padding: 10px 15px 5px 15px; /* Inayos na padding (top, sides, bottom) */
    margin-top: 10px; /* Nagdagdag ng margin sa itaas */
    margin-bottom: 0; /* Tiniyak na walang margin sa ibaba */
}

/* Itatarget natin ang pinakaunang header para alisin ang extra space sa taas */
.dashboard-nav .sidebar-header-title:first-child,
.sidebar-user-nav .sidebar-header-title:first-child {
    margin-top: 0;
}

.user-dropdown .dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px; /* Espasyo sa pagitan ng icon at text */
}

.user-dropdown .dropdown-icon {
    width: 18px; /* Sukat ng icon */
    height: 18px;
    flex-shrink: 0; /* Huwag liitan ang icon */
    color: #9CA3AF; /* Default color */
    transition: color 0.2s ease;
}

/* Gawing white ang icon sa hover */
.user-dropdown .dropdown-link:hover .dropdown-icon {
    color: #ffffff;
}

/* Gawing red ang icon sa logout link */
.user-dropdown .dropdown-link.logout .dropdown-icon {
    color: #fca5a5;
}

/* Gawing white ang icon sa logout link kapag naka-hover */
.user-dropdown .dropdown-link.logout:hover .dropdown-icon {
    color: #ffffff;
}

.nav-user-icons {
    display: none; /* Itago by default */
    align-items: center;
    gap: 12px; /* Espasyo sa pagitan ng mga icon */
}

/* Ipapakita lang kapag logged in ang user */
body.user-logged-in .nav-user-icons {
    display: flex;
}

.nav-icon-btn {
    background: none;
    border: none;
    padding: 6px; /* Padding para sa hover effect */
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E5E7EB; /* Default na puting kulay */
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-icon-btn:hover {
    background-color: #374151;
    color: #fff;
}

.nav-icon-btn svg {
    width: 26px; /* Itatakda natin ang parehong sukat */
    height: 26px;
}

/* Ayusin ang pwesto sa mobile */
@media (max-width: 1170px) {
    .nav-right {
        gap: 12px; /* Bawasan ang espasyo sa nav-right */
    }
    .nav-user-icons {
        gap: 4px; /* Idikit nang bahagya ang mga icon sa mobile */
    }
}

/* Ipapakita lang kapag logged in ang user */
body.user-logged-in .nav-user-icons {
    display: flex;
}

/* Notification Dropdown Container */
.notification-wrapper {
    position: relative;
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 20px !important;
    background-color: #1F2937;
    border: 1px solid #374151;
    border-radius: 8px;
    width: 400px;
    z-index: 1100;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.notification-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-header {
    padding: 12px 16px;
    font-weight: 600;
    color: #E5E7EB;
    border-bottom: 1px solid #374151;
}

.notification-body {
    padding: 20px 16px;
    text-align: center;
    color: #9CA3AF;
}

@media (max-width: 1170px) {
    .notification-dropdown {
        position: fixed; /* Palitan sa 'fixed' para sa viewport positioning */
        top: 65px; /* Itulak pababa mula sa taas ng screen, sa ilalim ng nav */
        left: 50%; /* Ilagay sa gitna */
        right: auto; /* Alisin ang 'right: 0' */
        margin-top: 0; /* Alisin ang margin-top */
        
        /* I-update ang transform para sa tamang centering at animation */
        transform: translateX(-50%) translateY(-10px); 
    }

    .notification-dropdown.show {
        transform: translateX(-50%) translateY(0); /* I-slide pababa kapag 'show' */
    }
}
/* Mobile Sidebar Icons */
.sidebar-profile-header {
    justify-content: space-between; /* Para mag-align ng maayos */
}

.sidebar-profile-header {
    display: flex; /* Panatilihin ang flex */
    align-items: center; /* I-align ang items vertically */
    gap: 0px; /* Magdagdag ng espasyo sa pagitan ng avatar at text */
    justify-content: flex-start; /* I-align lahat sa simula (kaliwa) */
    margin-bottom: 15px;
}

.role-writer, .role-manager {
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.6em;
    vertical-align: middle;
    margin-left: 0px;
    text-transform: capitalize;
}

.role-writer {
    color: #298cfd;
    background-color: rgba(0, 119, 255, 0.1);
    border: 1px solid #298cfd;
}

.role-manager {
    color: #fcd34d;
    background-color: rgba(252, 211, 77, 0.1);
    border: 1px solid #fcd34d;
}


#dashboard-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #111827; /* Kapareho ng iyong body background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* Pinakamataas na z-index */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#dashboard-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 5px solid #374151; /* Kulay ng bilog */
    border-top: 5px solid #673DE6; /* Kulay ng umiikot na parte */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.settings-tabs {
    display: flex;
    border-bottom: 1px solid #374151;
    margin-bottom: 20px; /* Ito ang magbibigay ng espasyo */
}

.tab-btn {
    background: none;
    border: none;
    color: #9CA3AF;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9em;
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.tab-btn:hover {
    color: #fff;
}

.tab-btn.active {
    color: #fff;
    border-bottom-color: #673DE6;
}

.settings-content-container {
    padding: 30px 40px;
    background-color: #1F2937;
    /* --- Idinagdag ang mga linyang ito --- */
    background-image: 
        radial-gradient(ellipse at 0% 0%, #111827 0%, transparent 50%),
        radial-gradient(ellipse at 100% 0%, #111827 0%, transparent 45%),
        radial-gradient(ellipse at 0% 100%, #111827 0%, transparent 40%),
        radial-gradient(ellipse at 100% 100%, #111827 0%, transparent 55%);
    /* --- Hanggang dito --- */
    border: 1px solid #374151;
    border-radius: 8px !important;
}

.settings-content > .settings-content-container + .settings-content-container {
    margin-top: 25px; /* Ito ang espasyo sa pagitan ng Personal Info at Login & Security boxes */
}

.settings-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.settings-content.active {
    display: block;
}

/* Account Grid */
.settings-grid {
    display: flex;
    flex-direction: column;
}

.grid-item {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #374151;
}

.grid-item:last-child {
    border-bottom: none;
}

.grid-item-label h4 {
    margin: 0 0 4px 0;
    font-size: 0.9em;
    color: #E5E7EB;
    font-weight: 600;
}

.grid-item-label p {
    margin: 0;
    font-size: 0.8em;
    color: #9CA3AF;
}

.grid-item-value {
    color: #fff;
    font-size: 0.8em;
}

.grid-item-action {
    justify-self: end;
}

.form-btn.btn-secondary {
    background-color: #374151;
    color: #E5E7EB;
    /* Tinanggal ang padding at font-size dito */
}

.grid-item-action .form-btn {
    padding: 8px 18px;
    font-size: 0.85em;
}

.form-btn.btn-secondary:not(:disabled):hover {
    background-color: #4B5563;
}

/* Notification List */
.notification-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #374151;
}
.notification-item:last-child {
    border-bottom: none;
}

.notification-text h4 {
    margin: 0 0 4px 0;
    font-weight: 600;
    color: #E5E7EB;
}
.notification-text p {
    margin: 0;
    font-size: 0.85em;
    color: #9CA3AF;
}

/* Danger Zone */
.danger-zone-container {
    border: 2px solid #ef4444;
    border-radius: 8px;
    padding: 20px;
    background-color: rgba(239, 68, 68, 0.05);
}

.danger-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.danger-action h4 {
    color: #fca5a5;
    margin: 0 0 5px 0;
    font-weight: 700;
}
.danger-action p {
    color: #9CA3AF;
    font-size: 0.9em;
    margin: 0;
}

.form-btn.btn-danger {
    background-color: #ef4444;
}
.form-btn.btn-danger:hover {
    background-color: #dc2626;
}

@media (max-width: 768px) {
    .settings-tabs {
        padding: 0 10px;
    }
    .tab-btn {
        padding: 12px 10px;
        font-size: 0.8em;
    }
    .settings-content-container {
        padding: 20px;
    }
    .grid-item {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: left;
    }
    .grid-item-action {
        justify-self: start;
    }
    .danger-action {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

.form-btn svg {
    width: 16px;
    height: 16px;
}

/* --- Profile Page --- */
.profile-page-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.profile-header {
        display: flex;
        align-items: center;
        /* Alisin ang justify-content at ibalik lang ang gap */
        gap: 20px; 
        /* --- IDAGDAG ITO para sa espasyo sa baba --- */
        padding-bottom: 25px;
        margin-bottom: 25px;
        border-bottom: 1px solid #374151;
    }

    /* --- IDAGDAG DIN ITONG BAGONG RULE PARA SA BUTTON --- */
    #view-profile-btn {
        margin-left: auto; /* Ito ang magic na magtutulak sa button papunta sa kanan */
    }

.profile-avatar-large {
    width: 80px;  /* Pinalaki */
    height: 80px; /* Pinalaki */
    background-color: #374151;
    border-radius: 50%; /* Ginawang bilog */
    flex-shrink: 0;
    cursor: pointer; /* Idinagdag para ipakitang clickable */
}

.profile-header-info h3 {
    margin: 0 0 4px 0;
    color: #fff;
    font-size: 1.2em;
}

.profile-link {
        color: #9CA3AF;
        font-size: 0.9em;
        text-decoration: none;
        display: inline-flex; /* <-- IDAGDAG ITO */
        align-items: center;  /* <-- IDAGDAG ITO */
        gap: 2px;             /* <-- IDAGDAG ITO */
    }
    
    .profile-link svg {
        width: 16px;          /* <-- IDAGDAG ITO */
        height: 16px;         /* <-- IDAGDAG ITO */
        stroke-width: 2.5;    /* <-- IDAGDAG ITO (optional) para kumapal ng konti */
    }
    
.profile-link:hover {
    text-decoration: underline;
}

.profile-section {
        background-color: #1F2937;
        background-image: 
            radial-gradient(ellipse at 0% 0%, #111827 0%, transparent 50%),
            radial-gradient(ellipse at 100% 0%, #111827 0%, transparent 45%),
            radial-gradient(ellipse at 0% 100%, #111827 0%, transparent 40%),
            radial-gradient(ellipse at 100% 100%, #111827 0%, transparent 55%);
        border: 1px solid #374151;
        border-radius: 8px; /* Pinalitan mula 12px para maging 8px */
        padding: 25px;
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 40px;
        margin-bottom: 25px; /* <-- IDAGDAG ANG LINYANG ITO */
    }

.profile-section-label h4 {
    margin: 0 0 5px 0;
    font-weight: 600;
    color: #fff;
}
.profile-section-label p {
    margin: 0;
    font-size: 0.9em;
    color: #9CA3AF;
}

.profile-section-content {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    /* --- IDAGDAG ITO --- */
    .profile-section-content textarea.form-input {
        min-height: 80px;
    }

.url-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #4B5563;
    border-radius: 6px;
    background-color: #111827;
}
.url-input-group span {
    padding: 0 12px;
    color: #9CA3AF;
    font-size: 0.9em;
    border-right: 1px solid #4B5563;
}
.url-input-group input.form-input {
    border: none;
    background: none;
    flex-grow: 1;
}
.url-input-group input.form-input:focus {
    box-shadow: none;
}

.logo-upload-area {
    display: flex;
    align-items: center;
    gap: 20px;
}
.logo-preview-small {
    width: 64px; /* Pinalaki */
    height: 64px; /* Pinalaki */
    background-color: #374151;
    border-radius: 50%; /* Ginawang bilog */
    flex-shrink: 0;
}

.drop-zone {
    flex-grow: 1;
    border: 2px dashed #374151;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}
.drop-zone:hover {
    border-color: #673DE6;
}
.drop-zone-icon {
    width: 40px;
    height: 40px;
    background-color: #374151;
    border-radius: 50%;
    margin: 0 auto 10px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.drop-zone-icon svg {
    width: 24px;
    height: 24px;
    color: #9CA3AF;
}
.drop-zone span {
    display: block;
    font-size: 0.9em;
    color: #D1D5DB;
}
.drop-zone span b {
    color: #A5B4FC;
}
.drop-zone .drop-zone-specs {
    font-size: 0.8em;
    color: #9CA3AF;
    margin-top: 4px;
}

.profile-actions-footer {
display: flex;
justify-content: flex-end;
gap: 12px;
margin-top: 25px;
}


@media (max-width: 768px) {
    .profile-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.profile-avatar-large, .logo-preview-small {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Para kung image ang laman, susunod sa border-radius */
}
.profile-avatar-svg {
    width: 50%; /* Pinalitan mula 60% */
    height: 50%; /* Pinalitan mula 60% */
    color: #9CA3AF;
}


.profile-avatar-large.public {
    width: 120px;
    height: 120px;
}

.profile-header-info.public {
    margin-top: 10px;
}

.profile-header-info.public h1 {
    font-size: 2em;
    margin: 0 0 10px 0;
}

.profile-bio {
    color: #D1D5DB;
    line-height: 1.7;
    margin: 0 0 20px 0;
}

.profile-socials {
    display: flex;
    gap: 15px;
}

.profile-socials a {
    color: #9CA3AF;
    transition: color 0.2s ease;
}

.profile-socials a:hover {
    color: #fff;
}

.profile-socials svg {
    width: 24px;
    height: 24px;
}

.profile-posts-section h2 {
    font-size: 1.5em;
    color: #fff;
    border-bottom: 1px solid #374151;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.profile-posts-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default sa 1 column para sa mobile */
    gap: 20px;
}

/* Para sa tablets and up (2 columns) */
@media (min-width: 640px) {
    .profile-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Para sa small laptops (3 columns) */
@media (min-width: 900px) {
    .profile-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Para sa large screens (4 columns) */
@media (min-width: 1200px) {
    .profile-posts-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.profile-post-card {
    background-color: #1F2937;
    border: 1px solid #374151;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    border-color: #4B5563;
}

.post-card-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #374151;
}

.post-card-info {
    padding: 15px;
}

.post-card-info h3 {
    margin: 0 0 10px 0;
    font-size: 1em;
    color: #E5E7EB;
    line-height: 1.4;
}

.post-card-category {
    font-size: 0.8em;
    font-weight: 600;
    color: #A5B4FC;
}

.no-posts-message {
    color: #9CA3AF;
}

.profile-header.public {
    background-color: #1F2937;
    border-radius: 12px;
    padding: 30px;
    display: grid; /* Pinalitan sa grid */
    grid-template-columns: auto 1fr; /* Avatar column, at aayusin ang natitirang space */
    grid-template-rows: auto auto auto; /* Tatlong row para sa username, bio, at stats/socials */
    gap: 0 30px; /* Walang vertical gap, 30px horizontal gap */
    align-items: center; /* I-align ang lahat sa gitna vertically */
    border: 1px solid #374151;
    position: relative;
    overflow: hidden;
    text-align: left; /* Ibalik sa left-align */
}

.profile-header.public::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(103, 61, 230, 0.1), transparent 40%);
    animation: rotate 15s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


.profile-header-info.public h1 {
    font-size: 2.5em; /* Pinalaki pa */
    margin-top: 0; /* Inalis ang margin-top */
    margin-bottom: 5px; /* Binawasan ang margin-bottom */
    z-index: 2;
}

.profile-bio {
    max-width: 100%; /* Pinalitan para umokupa ng available space */
    z-index: 2;
    margin: 0 0 15px 0; /* Inayos ang margin */
}

.profile-stats {
    display: flex;
    gap: 20px;
    margin: 0; /* Inalis ang margin */
    padding: 0; /* Inalis ang padding */
    background-color: transparent; /* Inalis ang background */
    border-radius: 0;
    z-index: 2;
    margin-bottom: 20px; /* Nagdagdag ng espasyo sa baba */
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item strong {
    font-size: 1.2em;
    color: #fff;
}

.stat-item span {
    font-size: 0.8em;
    color: #9CA3AF;
}

.stat-divider {
    width: 1px;
    background-color: #374151;
}

/* Tabs */
.profile-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}
.profile-tabs .tab-btn {
    font-size: 0.9em;
    padding: 8px 16px;
    border-bottom: 2px solid transparent;
}
.profile-tabs .tab-btn.active {
    border-bottom-color: #673DE6;
}

/* Post Card Styles */
.profile-post-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1; /* Ito ang susi para itulak ang footer pababa */
    padding: 15px;
}

.post-card-info h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8em; /* 1.4em line-height * 2 lines */
}

.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #374151;
}

.post-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px; /* Inilipat dito ang margin */
}
.author-avatar {
    width: 28px;   /* Pinalaki ng konti */
    height: 28px;  /* Pinalaki ng konti */
    flex-shrink: 0; /* Para hindi lumitit ang avatar */
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4B5563;
    border: 2px solid #677ea2; /* Idinagdag ang border */
}
.author-avatar img, .author-avatar svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75em;
    color: #9CA3AF;
}

.post-card-stats .stat-divider {
    width: 4px;
    height: 4px;
    background-color: #4B5563;
    border-radius: 50%;
}

.profile-page-container.public-view {
    max-width: 1100px;
}

.profile-header.public {
    background-color: #1F2937;
    border-radius: 12px;
    padding: 30px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    gap: 0 30px;
    align-items: center;
    border: 1px solid #374151;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.profile-header.public::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(103, 61, 230, 0.1), transparent 40%);
    animation: rotate 15s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.profile-avatar-large.public {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    z-index: 2;
    grid-row: 1 / 4;
}

.profile-header-info.public h1 {
    font-size: 2.5em;
    margin-top: 0;
    margin-bottom: 5px;
    z-index: 2;
}

.profile-bio {
    max-width: 100%;
    z-index: 2;
    margin: 0 0 15px 0;
    color: #D1D5DB;
    line-height: 1.7;
}

.profile-stats {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    z-index: 2;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Palitan sa flex-start */
}

.stat-item strong {
    font-size: 1.2em;
    color: #fff;
}

.stat-item span {
    font-size: 0.8em;
    color: #9CA3AF;
}

.stat-divider {
    width: 1px;
    background-color: #374151;
}

.profile-socials {
    display: flex;
    gap: 15px;
    z-index: 2;
}

.profile-socials a {
    color: #9CA3AF;
    transition: color 0.2s ease;
}

.profile-socials a:hover {
    color: #fff;
}

.profile-socials svg {
    width: 24px;
    height: 24px;
}

.profile-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.profile-tabs .tab-btn {
    font-size: 0.9em;
    padding: 8px 16px;
    border-bottom: 2px solid transparent;
}

.profile-tabs .tab-btn.active {
    border-bottom-color: #673DE6;
}

.profile-posts-section h2 {
    font-size: 1.5em;
    color: #fff;
    border-bottom: 1px solid #374151;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.profile-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .profile-posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .profile-posts-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
    .profile-posts-grid { grid-template-columns: repeat(4, 1fr); }
}

/* --- BAGONG CARD STYLES --- */
.profile-post-card {
    background-color: rgba(31, 41, 55, 0.4); /* Pinalitan dito */
    border: 1px solid #374151;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; /* Idinagdag ang background-color */
    display: flex;
    flex-direction: column;
}

.profile-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    border-color: #4B5563;
    background-color: #1F2937; /* <-- IDAGDAG ITO */
}

.post-card-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative; /* Mahalaga para sa pwesto ng badge */
}

.post-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-thumbnail .pill {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 2;
}

.post-card-content {
    padding: 15px;
    text-align: left;
}

.post-card-content h3 {
    margin: 0 0 8px 0;
    font-size: 1em;
    color: #E5E7EB;
    line-height: 1.4;
    font-weight: 600;
    /* Para sa text-truncation */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8em; /* 1.4em * 2 lines */
}

.post-card-author-name {
    font-size: 0.85em;
    font-weight: 500;
    color: #9CA3AF;
}
.post-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8em;
    color: #9CA3AF;
}

.meta-dot {
    width: 4px;
    height: 4px;
    background-color: #4B5563;
    border-radius: 50%;
}

.no-posts-message {
    color: #9CA3AF;
}

.post-thumbnail-container {
    position: relative;
    overflow: hidden;
    padding: 25px; /* <-- IBINALIK ANG PADDING DITO */
    background-color: #1F2937; /* Idagdag kung sakaling nawala */
    border: 1px solid #374151; /* Idagdag kung sakaling nawala */
    border-radius: 12px;       /* Idagdag kung sakaling nawala */
    aspect-ratio: 16 / 9;
}

.post-slider-wrapper {
    display: grid; /* Pinalitan mula sa flex */
    width: 100%;   /* Pinalitan mula sa 200% */
    height: 100%;
    /* Inalis ang transition dito */
}


.post-slide {
    /* I-specify na lahat ng slide ay nasa unang row at unang column */
    grid-column: 1 / 1;
    grid-row: 1 / 1;
    width: 100%; /* Pinalitan mula sa 50% */
    height: 100%;
    box-sizing: border-box;
    opacity: 0; /* Itatago natin by default */
    visibility: hidden; /* Itatago natin by default */
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}
.post-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2; /* Para siguradong nasa ibabaw ito */
}
/* Idagdag itong bagong rule para sa image at iframe */
.post-slide img,
.post-slide iframe {
    width: 100%;
    height: 100%;
    border-radius: 8px; /* Para magkaroon ng bilog na kanto ang media */
    object-fit: cover;
}

.post-slide iframe {
    width: 100%;
    height: 100%;
}

.post-arrow {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-thumbnail-container:hover .post-arrow {
    opacity: 1; /* Lalabas lang ang arrow kapag naka-hover sa container */
}

#post-arrow-prev {
    left: 15px; /* Pwesto mula sa kaliwa */
}

#post-arrow-next {
    right: 15px; /* Pwesto mula sa kanan */
}

.profile-username-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    grid-column: 1 / -1; /* Para umokupa ng buong lapad ng grid row */
}

.interaction-btn.active {
    background-color: #673DE6;
    color: #fff;
}