/* General Body & Typography */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa; /* Light gray for overall brightness */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 0; /* Sedikit padding vertikal di container */
}

h1, h2, h3 {
    color: #333;
    font-weight: 700;
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

/* Header Styles */
.main-header {
    background-color: #ffffff; /* Putih bersih untuk header */
    padding: 0px 0; /* Tinggi header lebih kecil */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Bayangan lebih halus */
    position: relative; /* Penting untuk positioning menu-toggle */
    border: 1px solid #e0e3eb;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px; /* Tambahkan padding horizontal */
    
}

.main-header .logo a {
    
     /* Hapus font-size dan font-weight jika diganti gambar */
    /* font-size: 1.8rem;
    font-weight: 700; */
    color: #209663; 
    text-decoration: none;
}

.header-logo {
    height: 40px; 
    width: auto; 
    vertical-align: middle; 
}

.menu-toggle {
    display: none; /* Default: Sembunyikan untuk desktop */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.main-nav {
    display: flex; /* Default: flex untuk desktop */
    align-items: center;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}

.main-nav ul li a:not(.btn),
.main-nav ul li .dropbtn {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.main-nav ul li a:not(.btn):hover,
.main-nav ul li .dropbtn:hover {
    background-color: #e0f2ff;
    color: #007bff;
}

/* Dropdown Menu Styles (Desktop) */
.dropdown {
    position: relative;
    display: inline-block; /* Agar dropdown di samping item nav lainnya */
}

.dropbtn .fas {
    margin-left: 5px;
    font-size: 0.8em;
}

.dropdown-content {
    display: none; /* Sembunyikan secara default */
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px #007bff;
    z-index: 1000;
    border-radius: 5px;
    overflow: hidden;
    padding: 5px 0;
    left: 0;
    top: calc(100% + -10px);
    border: 1px solid #eee;
}

.dropdown-content a {
    color: #333;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background-color 0.2s ease;
    font-weight: normal;
    font-size: 0.95rem;
}

.dropdown-content a:hover {
    background-color: #f0f8ff;
    color: #007bff;
}

/* Tampilkan dropdown saat hover/focus di desktop */
@media (min-width: 769px) { /* Di atas breakpoint mobile (termasuk 769px) */
    .dropdown:hover .dropdown-content,
    .dropdown:focus-within .dropdown-content {
        display: block;
    }
}


/* Buttons (General) */
.btn {
    display: inline-block;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #545b62;
    border-color: #545b62;
}

.btn-success {
    background-color: #28a745;
    color: #fff;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #1e7e34;
    border-color: #1e7e34;
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
    border-color: #ffc107;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

.btn-danger {
    background-color: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #bd2130;
    border-color: #bd2130;
}

.btn-cta {
    background-color: #28a745;
    color: white;
    font-size: 1.1em;
    padding: 15px 30px;
    border-radius: 50px;
    border: none;
}

.btn-cta:hover {
    background-color: #218838;
}

.btn-cta-card {
    display: block;
    width: 100%;
    max-width: 250px;
    margin: 15px auto 0 auto;
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-cta-card:hover {
    background-color: #0056b3;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.875rem;
}

.btn-block {
    display: block;
    width: 100%;
    margin-top: 15px;
}


/* Alerts (General) */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 5px;
    text-align: left;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

/* Hero Section (Landing Page) */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #e0f7fa, #f1f8e9);
    text-align: center;
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.hero-content h1 {
    font-size: 2.5rem;
    color: #2e7d32;
    margin-bottom: 20px;
}

.hero-content .subtitle {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features-section {
    padding: 60px 0;
    background-color: #fff;
}

.features-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #209663;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted minwidth */
    gap: 30px;
}

.feature-item {
    padding: 30px;
    background-color: #f9f9f9; /* Adjusted to f9f9f9 */
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item img {
    max-width: 80px;
    height: auto;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
}

.feature-item p {
    color: #666;
}


/* How It Works Section */
.how-it-works-section {
    padding: 60px 0;
    background-color: #e3f2fd;
}

.how-it-works-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #1e88e5;
    margin-bottom: 40px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step-item {
    text-align: center;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.step-item span {
    display: inline-block;
    background-color: #1e88e5;
    color: #fff;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    font-weight: bold;
    margin-bottom: 15px;
}

.step-item h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
}

.step-item p {
    color: #666;
}

/* CTA Bottom Section */
.cta-bottom {
    padding: 70px 0;
    background: linear-gradient(135deg, #f1f8e9, #e0f2f7);
    text-align: center;
}

.cta-bottom h2 {
    font-size: 2.2rem;
    color: #2e7d32;
    margin-bottom: 20px;
}

.cta-bottom p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
}

/* Main Content Styles (adjust as needed for specific pages) */
main {
    padding: 1px 0;
    background-color: #fff;
}

.page-hero-section {
    background-color: #f9f9f9;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 30px;
}

.page-hero-section h1 {
    font-size: 2.2rem;
    color: #209663;
    margin-bottom: 10px;
}

.page-hero-section .subtitle {
    color: #555;
    font-size: 1.1rem;
}

.content-section {
    padding: 30px 0;
}

.content-section .container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 6px #007bff;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem #007bff;
}

.auth-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px #007bff;
}

.auth-container h2 {
    text-align: center;
    color: #007bff;
    margin-bottom: 25px;
}

/* Input Group (for show/hide password) */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.input-group input {
    width: 100%;
    padding-right: 40px;
    box-sizing: border-box;
}
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    font-size: 1.1em;
    z-index: 2;
}
.toggle-password:hover {
    color: #000;
}

/* Table Styles (General for data-table, mini-table) */
.table-responsive {
    overflow-x: auto;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    box-shadow: 0 2px 10px #007bff;
    border-radius: 8px;
    overflow: hidden;
}
.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.data-table th {
    background-color: #f2f2f2;
    font-weight: 600;
    color: #555;
}
.data-table tbody tr:last-child td {
    border-bottom: none;
}
.data-table tbody tr:hover {
    background-color: #f9f9f9;
}

/* Mini Table for Dashboard */
.mini-table-container {
    max-width: 100%;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px #007bff;
    overflow: hidden;
}
.mini-table {
    width: 100%;
    border-collapse: collapse;
}
.mini-table th, .mini-table td {
    padding: 10px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 0.9em;
}
.mini-table th {
    background-color: #f2f2f2;
    font-weight: 600;
    color: #555;
}
.mini-table tbody tr:last-child td {
    border-bottom: none;
}
.mini-table tbody tr:hover {
    background-color: #f6f6f6;
}


/* Status Badges */
.status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: 600;
    text-align: center;
    color: #fff;
}

.status-active { background-color: #28a745; } /* Green */
.status-inactive { background-color: #6c757d; } /* Gray */
.status-pending { background-color: #ffc107; color: #212529; } /* Yellow (for orders/confirmations) */
.status-completed { background-color: #17a2b8; } /* Cyan (for referrals) */
.status-awaiting_payment_confirmation { background-color: #007bff; } /* Blue (for payments) */
.status-paid { background-color: #28a745; } /* Green (for payments) */
.status-expired { background-color: #dc3545; } /* Red (for subscriptions/orders) */
.status-cancelled { background-color: #6c757d; } /* Gray (for subscriptions/orders) */
.status-basic { background-color: #6f42c1; } /* Purple (for plans) */
.status-premium { background-color: #007bff; } /* Blue (for plans) */
.status-admin { background-color: #343a40; } /* Dark Gray (for roles) */

/* Specific Signal Statuses */
.status-take_profit { background-color: #008000; } /* Darker green for Take Profit */
.status-stop_loss { background-color: #8B0000; } /* Darker red for Stop Loss */
.status-traded { background-color: #3182ce; } /* Blue for traded status (from client_signal_logs) */
.status-sent { background-color: #007bff; } /* Blue for sent status (from client_signal_logs) */
.status-open { background-color: #ffa500; } /* Orange for OPEN trade status */
.status-re_entry { background-color: #ffa500; } /* Orange for OPEN trade status */
.status-closed { background-color: #28a745; } /* Green for CLOSED trade status */
.status-failed { background-color: #dc3545; } /* Red for FAILED trade status */

/* Action Buttons within Tables */
.action-buy { color: #28a745; font-weight: bold; }
.action-sell { color: #dc3545; font-weight: bold; }


/* Dashboard & Affiliate Specific Styles */
.dashboard-overview { padding: 30px 0; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.dashboard-card { background-color: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 6px #007bff; text-align: center; }
.dashboard-card h3 { font-size: 1.3rem; color: #333; margin-bottom: 10px; }
.dashboard-card .metric { font-size: 1.8rem; font-weight: bold; color: #007bff; }
.dashboard-card .metric.text-success { color: #28a745; }
.dashboard-card .metric.text-danger { color: #dc3545; }




/* Footer Styles */
.main-footer { background-color: #f8f9fa; color: #666; padding: 30px 0; text-align: center; border-top: 1px solid #eee; }
.main-footer .container { display: flex; flex-direction: column; align-items: center; }
.main-footer .footer-links { margin-bottom: 15px; }
.main-footer .footer-links a { color: #666; text-decoration: none; margin: 0 10px; }
.main-footer .footer-links a:hover { color: #007bff; }
.main-footer p { margin: 5px 0; font-size: 0.9rem; }

/* Page Specific Hero & Content Sections */
.page-hero-section { background-color: #f9f9f9; padding: 40px 0; text-align: center; margin-bottom: 30px; }
.page-hero-section h1 { font-size: 2.2rem; color: #209663; margin-bottom: 10px; }
.page-hero-section .subtitle { color: #555; font-size: 1.1rem; }
.content-section { padding: 30px 0; }
.content-section .container { background-color: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 6px #007bff; }


/* Form Filter Styles (for logs) */
.filter-form { display: flex; flex-wrap: wrap; gap: 15px; align-items: flex-end; background-color: #f9f9f9; padding: 20px; border-radius: 8px; box-shadow: 0 2px 5px #007bff; }
.form-group-inline { display: flex; flex-direction: column; margin-bottom: 0; }
.filter-form label { margin-bottom: 5px; font-weight: 600; color: #555; white-space: nowrap; }
.filter-form .form-control { padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 0.9em; }
.filter-form button.btn { padding: 8px 20px; font-size: 0.9em; height: 38px; }
.custom-date-range { display: flex; gap: 10px; align-items: flex-end; }
.custom-date-range label { margin-left: 0; }


/* Specific Section Styles (Hero, Features, How It Works, CTA) */
.hero-section { background: linear-gradient(135deg, #e0f7fa, #f1f8e9); padding: 80px 0; text-align: center; }
.hero-section .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.hero-content { flex: 1; min-width: 300px; text-align: left; }
.hero-content h1 { font-size: 2.5rem; color: #2e7d32; margin-bottom: 20px; }
.hero-content .subtitle { font-size: 1.1rem; color: #555; margin-bottom: 30px; }
.hero-image { flex: 1; min-width: 300px; text-align: right; }
.hero-image img { max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 4px 12px #007bff; }

.features-section { padding: 60px 0; background-color: #fff; }
.features-section h2 { text-align: center; font-size: 2rem; color: #209663; margin-bottom: 40px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.feature-item { padding: 30px; background-color: #f9f9f9; border-radius: 8px; box-shadow: 0 2px 6px #007bff; text-align: center; transition: transform 0.3s ease; }
.feature-item:hover { transform: translateY(-5px); }
.feature-item img { max-width: 80px; height: auto; margin-bottom: 20px; }
.feature-item h3 { font-size: 1.3rem; color: #333; margin-bottom: 10px; }
.feature-item p { color: #666; }

.how-it-works-section { padding: 60px 0; background-color: #e3f2fd; }
.how-it-works-section h2 { text-align: center; font-size: 2rem; color: #1e88e5; margin-bottom: 40px; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.step-item { text-align: center; padding: 30px; background-color: #fff; border-radius: 8px; box-shadow: 0 2px 6px #007bff; }
.step-item span { display: inline-block; background-color: #1e88e5; color: #fff; width: 40px; height: 40px; line-height: 40px; border-radius: 50%; font-weight: bold; margin-bottom: 15px; }
.step-item h3 { font-size: 1.3rem; color: #333; margin-bottom: 10px; }
.step-item p { color: #666; }

.cta-bottom { padding: 70px 0; background: linear-gradient(135deg, #f1f8e9, #e0f2f7); text-align: center; }
.cta-bottom h2 { font-size: 2.2rem; color: #2e7d32; margin-bottom: 20px; }
.cta-bottom p { font-size: 1.1rem; color: #555; margin-bottom: 30px; }


/* Pricing Section */
.pricing-section { padding: 60px 0; text-align: center; background-color: #f0f8ff; }
.pricing-section h2 { font-size: 2.2em; color: #007bff; margin-bottom: 40px; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; align-items: stretch; justify-content: center; }
.pricing-card { background-color: #fff; padding: 30px; border-radius: 10px; box-shadow: 0 4px 15px #007bff; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; justify-content: space-between; }
.pricing-card:hover { transform: translateY(-8px); box-shadow: 0 8px 20px #007bff; }
.pricing-card h2 { font-size: 1.8em; color: #0056b3; margin-bottom: 15px; text-align: center; }
.pricing-card .price { font-size: 2.5em; font-weight: 700; color: #28a745; margin-bottom: 15px; text-align: center; }
.pricing-card .price sup { font-size: 0.5em; vertical-align: super; }
.pricing-card .price span { font-size: 0.4em; color: #777; font-weight: 400; }
.pricing-card .description { font-size: 0.95em; color: #666; margin-bottom: 20px; text-align: center; flex-grow: 1; }
.pricing-card .features-list { list-style: none; padding: 0; margin-bottom: 30px; text-align: left; }
.pricing-card .features-list li { font-size: 1em; color: #444; margin-bottom: 10px; display: flex; align-items: center; }
.pricing-card .features-list li .icon-check { color: #28a745; margin-right: 10px; font-weight: bold; }
.icon-check::before { content: '✔'; } /* Unicode checkmark */
.btn-cta-card { display: block; width: 100%; max-width: 250px; margin: 15px auto 0 auto; background-color: #007bff; color: white; padding: 12px 25px; border-radius: 5px; text-decoration: none; font-weight: 600; transition: background-color 0.3s ease; }
.btn-cta-card:hover { background-color: #0056b3; }
.no-plans { font-size: 1.2em; color: #777; padding: 50px 0; }

/* FAQ Section */
.faq-section { padding: 60px 0; background-color: #fff; text-align: center; }
.faq-section h2 { font-size: 2.2em; color: #007bff; margin-bottom: 40px; }
.faq-item { background-color: #f8f9fa; padding: 25px; margin-bottom: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); text-align: left; }
.faq-item h3 { font-size: 1.3em; color: #333; margin-bottom: 10px; }
.faq-item p { font-size: 0.95em; color: #555; line-height: 1.7; }


/* Responsive Adjustments */
@media (max-width: 768px) {
    .container { padding: 0 15px; }

    /* Header Mobile Specifics */
    .main-header .container {
        flex-wrap: nowrap; /* Jangan wrap agar logo dan toggle di satu baris */
        justify-content: space-between;
    }
    .main-header .logo {
        flex-grow: 1;
    }
    .header-logo  {
      height: 35px;  /*  Sedikit lebih kecil di mobile */
    } 
   
    .menu-toggle {
        display: block; /* Tampilkan tombol hamburger di mobile */
    }
    .main-nav {
        display: none; /* Sembunyikan navigasi secara default di mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 4px 8px #007bff;
        padding: 0;
        flex-direction: column;
        align-items: flex-start;
        z-index: 999;
    }
    .main-nav.active {
        display: flex; /* Tampilkan saat class 'active' ada (dari JS) */
    }
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 10px 0;
    }
    .main-nav ul li {
        width: 100%;
        margin: 0;
    }
    .main-nav ul li a,
    .main-nav ul li .dropbtn { /* Target both links and dropdown buttons */
        padding: 12px 20px;
        width: 100%;
        text-align: left;
        border-radius: 0;
    }
    .main-nav ul li a:not(.btn):hover,
    .main-nav ul li .dropbtn:hover {
        background-color: #f0f8ff;
    }
    /* Dropdown content in mobile (static positioning and controlled by JS) */
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        background-color: #f8f9fa;
    }
    .dropdown-content a {
        padding-left: 40px;
        font-size: 0.9em;
    }
    .dropdown.open > .dropdown-content {
        display: block;
    }
    /* End Header Mobile Specifics */


    .hero-section .container { flex-direction: column; text-align: center; }
    .hero-content { min-width: unset; width: 100%; text-align: center; }
    .hero-image { min-width: unset; width: 100%; margin-top: 30px; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content .subtitle { font-size: 1rem; }

    .features-grid,
    .steps-grid,
    .pricing-grid,
    .dashboard-grid,
    .checkout-summary-grid,
    .two-column-grid,
    .two-column-grid.reversed {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: center;
    }
    .two-column-grid .text-content,
    .two-column-grid .image-content {
        min-width: unset;
        width: 100%;
        text-align: center;
    }
    .content-section h1,
    .content-section h2,
    .content-section h3,
    .page-hero-section h1 { font-size: 1.8em; }

    .auth-container { width: 95%; margin: 20px auto; }

    .data-table th, .data-table td,
    .mini-table th, .mini-table td { font-size: 0.8em; padding: 8px 10px; }

    .filter-form { flex-direction: column; align-items: stretch; gap: 10px; }
    .form-group-inline { width: 100%; }
    .filter-form button.btn { width: 100%; margin-top: 10px; }
    .custom-date-range { flex-direction: column; gap: 10px; }
    .custom-date-range label { margin-left: 0 !important; }
}


/* Signals Page Styles */
.signals-grid {
    display: grid;
    /* Ubah ini untuk kolom yang lebih baik: 3 kolom di desktop, 2 di tablet, 1 di mobile */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px; /* Jarak antar kartu */
    margin-top: 20px;
    justify-content: center; /* Pusatkan kartu jika tidak memenuhi lebar penuh */
}

.signal-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* Bayangan lebih halus */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Efek hover */
}

.signal-card:hover {
    transform: translateY(-5px); /* Sedikit naik saat hover */
    box-shadow: 0 8px 18px rgba(0,0,0,0.12); /* Bayangan lebih kuat saat hover */
}

.signal-header {
    background-color: #f7f7f7; /* Background header kartu sinyal */
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.signal-header h3 {
    margin: 0;
    font-size: 1.15em; /* Ukuran font sedikit disesuaikan */
    color: #333;
}

.signal-time {
    font-size: 0.85em;
    color: #777;
    white-space: nowrap; /* Mencegah waktu pecah baris */
}

.signal-body {
    padding: 15px;
    flex-grow: 1;
    font-size: 0.95em;
    line-height: 1.5;
}

.signal-body p {
    margin-bottom: 8px;
    color: #555;
}

.signal-body strong {
    color: #333;
}

/* Specific styles for Action */
.action-buy {
    color: #28a745; /* Green */
    font-weight: bold;
}
.action-sell {
    color: #dc3545; /* Red */
    font-weight: bold;
}

.signal-copywriting {
    background-color: #eef5ff; /* Light blue background for copywriting */
    border-left: 4px solid #007bff; /* Border kiri biru */
    padding: 10px;
    margin-top: 15px;
    border-radius: 4px;
    font-style: italic;
    color: #444;
    font-size: 0.9em;
}

.signal-copywriting span {
    display: block;
    margin-top: 5px;
    font-style: normal;
}

.signal-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    text-align: center;
    background-color: #f7f7f7;
}

/* Responsive Adjustments for Signals */
@media (max-width: 992px) { /* Untuk tablet dan layar lebih kecil (misal, 2 kolom) */
    .signals-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}
@media (max-width: 600px) { /* Untuk mobile (1 kolom) */
    .signals-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .signal-card {
        margin: 0 auto; /* Pusatkan kartu di mobile */
        max-width: 400px; /* Batasi lebar kartu di mobile */
    }
    .signal-header h3 {
        font-size: 1.1em;
    }
}
.status-take_profit { background-color: #008000; } /* Darker green for TP */
.status-stop_loss { background-color: #8B0000; } /* Darker red for SL */

/* Radio Button Group */
.radio-group label {
    display: inline-flex; /* Agar radio dan teks sejajar */
    align-items: center;
    margin-right: 20px; /* Jarak antar opsi radio */
    font-weight: normal; /* Override font-weight dari form-group label */
    cursor: pointer;
}

.radio-group input[type="radio"] {
    width: auto; /* Jangan 100% */
    margin-right: 8px; /* Jarak radio dan teks */
    cursor: pointer;
}

.custom-checkbox {
      display: flex;
      align-items: center;
      cursor: pointer;
      position: relative;
      padding-left: 30px;
      margin: 10px 0;
      font-size: 16px;
      user-select: none;
    }

    /* Sembunyikan input checkbox asli */
    .custom-checkbox input {
      position: absolute;
      opacity: 0;
      cursor: pointer;
      height: 0;
      width: 0;
    }

    /* Kotak checkbox */
    .custom-checkbox span {
      position: absolute;
      left: 0;
      height: 20px;
      width: 20px;
      background-color: #eee;
      border: 2px solid #ccc;
      border-radius: 4px;
      transition: background-color 0.3s, border-color 0.3s;
    }

    /* Centang saat dicentang */
    .custom-checkbox input:checked ~ span::after {
      content: "";
      position: absolute;
      left: 6px;
      top: 2px;
      width: 6px;
      height: 12px;
      border: solid white;
      border-width: 0 2px 2px 0;
      transform: rotate(45deg);
    }

    /* Warna saat dicentang */
    .custom-checkbox input:checked ~ span {
      background-color: #4caf50;
      border-color: #4caf50;
    }

    /* Efek hover */
    .custom-checkbox:hover span {
      border-color: #888;
    }

/* Grid system */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

[class^="col-md-"] {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  box-sizing: border-box;
}

/* 12-column layout */
.col-md-1  { width: 8.33%; }
.col-md-2  { width: 16.66%; }
.col-md-3  { width: 25%; }
.col-md-4  { width: 33.33%; }
.col-md-5  { width: 41.66%; }
.col-md-6  { width: 50%; }
.col-md-7  { width: 58.33%; }
.col-md-8  { width: 66.66%; }
.col-md-9  { width: 75%; }
.col-md-10 { width: 83.33%; }
.col-md-11 { width: 91.66%; }
.col-md-12 { width: 100%; }

/* Card styling */
.card {
  background-color: #fff;
  border: 1px solid #ccc;
  margin-bottom: 1rem;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.card-body {
  padding: 1rem;
  background-color: #f9f9f9;
  font-family: sans-serif;
  font-size: 1rem;
}
.text-center {
    text-align: center !important;
}

.text-muted {
    color: #6c757d !important; /* Abu-abu netral */
    font-style: italic;
    opacity: 0.8;
}

.logo-container {
    margin-bottom: 30px;
    text-align: center;
}

.logo-container img {
    max-width: 400px;
    height: auto;
}

/* logo */
.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    /* padding: 20px; */
}

.logo-icon {
    height: 50px;
}

.logo-text {
    font-size: 32px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.auto,
.profit {
    color: #00e676;
}

.heart {
    color: #e91e63;
    display: inline-block;
    animation: heartbeat 1.2s infinite;
    margin-left: 4px;
}

.ai {
    color: #0d47a1;
    margin-left: 4px;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.3);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.3);
    }
}


