/* assets/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
        font-family: 'Poppins', sans-serif;
}

:root {
    --primary: #0f7b3a;
    --primary-dark: #0a5e2c;
    --primary-light: #dff0e4;
    --gray-100: #f8faf8;
    --gray-200: #e9ece9;
    --gray-600: #4a5b4e;
    --shadow: 0 8px 20px rgba(0,0,0,0.03), 0 2px 4px rgba(0,0,0,0.05);
}

body {

    background: #f4fbf4;
    color: #1a2e1f;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navbar */
.navbar {
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e2f;
    font-weight: 500;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-large {
    padding: 14px 36px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

.btn-small {
    padding: 6px 16px;
    font-size: 0.85rem;
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(135deg, #f0faf0, #e2f3e2);
}

.hero h1 {
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--gray-600);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Features */
.features {
    padding: 4rem 0;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Auth Pages */
.auth-page {
    background: linear-gradient(135deg, #f0faf0, #e2f3e2);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    padding: 1rem;
}

.auth-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    height: 50px;
    margin-bottom: 1rem;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-600);
}

.auth-form input, select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 40px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
}

/* Dashboard Layout */
.app {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid var(--gray-200);
    position: fixed;
    height: 100vh;
    transition: transform 0.3s;
    z-index: 100;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    text-align: center;
}

.sidebar-logo {
    height: 40px;
    margin-bottom: 0.5rem;
}

.sidebar-nav {
    padding: 1.5rem 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1.5rem;
    color: #2c3e2f;
    text-decoration: none;
    transition: 0.2s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-left: 3px solid var(--primary);
}

.main-content {
    flex: 1;
    margin-left: 280px;
}

.topbar {
    background: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 99;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

/* Hero Section in Dashboard */
.hero-section {
    background: linear-gradient(135deg, var(--primary-light), white);
    padding: 2rem;
    border-radius: 20px;
    margin: 1.5rem 0;
}

.hero-section h1 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

/* Account Cards */
.account-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
}

.account-card {
    background: white;
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}

.account-type {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.badge-active {
    background: #d9f0e0;
    color: #0f7b3a;
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-inactive {
    background: #f0f0f0;
    color: #999;
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 0.75rem;
}

.account-credentials {
    margin: 1rem 0;
}

.cred-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.cred-label {
    font-weight: 600;
    color: var(--gray-600);
    min-width: 90px;
}

.cred-value {
    flex: 1;
    font-family: monospace;
    filter: blur(4px);
    cursor: pointer;
}

.toggle-visibility {
    cursor: pointer;
    color: var(--gray-600);
}

.webhook-form {
    margin: 1rem 0;
}

.webhook-input-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.webhook-input-group input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 40px;
}

.set-active-form {
    margin-top: 0.5rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 20px;
    color: var(--gray-600);
}

.empty-state i {
    font-size: 3rem;
    color: var(--gray-200);
    margin-bottom: 1rem;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    background: white;
    margin: 15% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Admin Dashboard */
.admin-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.admin-section {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.admin-section h2 {
    margin-bottom: 1.5rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.status-pending {
    color: #f39c12;
    font-weight: 600;
}

.status-completed {
    color: #27ae60;
    font-weight: 600;
}

.status-failed {
    color: #e74c3c;
    font-weight: 600;
}

.settings-form .form-group {
    margin-bottom: 1rem;
}

.settings-form label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.settings-form input,
.settings-form select {
    width: 100%;
    max-width: 400px;
    padding: 10px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 40px;
}

.help-text {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.alert-error {
    background: #fee;
    color: #c00;
    border: 1px solid #fcc;
}

.alert-success {
    background: #d9f0e0;
    color: #0f7b3a;
    border: 1px solid #b8e6c8;
}

/* Footer */
footer {
    background: white;
    border-top: 1px solid var(--gray-200);
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .sidebar-toggle {
        display: block;
    }
    .nav-links {
        display: none;
    }
    .hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .accounts-grid {
        grid-template-columns: 1fr;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}