/* Minimize Client Panel Styles - Admin Panel Inspired */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8fafc;
    color: #171717;
    line-height: 1.5;
    min-height: 100vh;
    font-size: 14px;
}

/* Minimize Header */
.header {
    background-color: #fff;
    border-bottom: 1px solid #E3E8EF;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    min-height: 60px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: #666666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
}

.nav-link:hover,
.nav-link.active {
    color: #000;
    background-color: #f8fafc;
}

.nav-link i {
    font-size: 1rem;
        font-size: 1rem;
    line-height: 16px;
    margin-top: 3px;
}

.credit-badge {
    background-color: #f1f5f9;
    color: #171717;
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    font-weight: 600;
    border: 1px solid #E3E8EF;
    font-size: 0.875rem;
}

/* Minimize Buttons */
.btn-primary {
    background-color: #000;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid #000;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #171717;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #fff;
    color: #171717;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid #E3E8EF;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #f8fafc;
    border-color: #000;
}

.btn-danger {
    background-color: #ef4444;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid #ef4444;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.btn-danger:hover {
    background-color: #dc2626;
    border-color: #dc2626;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #171717;
    cursor: pointer;
    padding: 0.5rem;
}

/* Minimize Main Content */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    min-height: calc(100vh - 120px);
}

/* Minimize Page Header */
.page-header {
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-title i {
    font-size: 1.25rem;
}

.page-description {
    color: #666666;
    font-size: 0.875rem;
}

/* Minimize Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background-color: #fff;
    border: 1px solid #E3E8EF;
    border-radius: 5px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: #000;
    transform: translateY(-1px);
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.stat-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-icon {
    width: 32px;
    height: 32px;
    background-color: #f1f5f9;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.25rem;
}

.stat-description {
    color: #666666;
    font-size: 0.75rem;
}

/* Minimize Cards */
.card {
    background-color: #fff;
    border: 1px solid #E3E8EF;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.card.card-auto{
    height: max-content;
}

.card-header {
    padding: 1rem;
    border-bottom: 1px solid #E3E8EF;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-header.right {
    flex-direction: column;
    align-items: flex-start;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title i {
    font-size: 1rem;
}

.card-description {
    color: #666666;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.card-body {
    padding: 1rem;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

/* Minimize Forms */
.form-grid {
    display: grid;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-label {
    font-weight: 600;
    color: #171717;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 17px;
}

.form-label i {
    font-size: 0.875rem;
    line-height: 21px;
    color: #666666;
}

.form-input,
.form-select,
.form-textarea {
    padding: 0.5rem 0.75rem;
    border: 1px solid #E3E8EF;
    border-radius: 5px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background-color: #fff;
    width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #000;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-help {
    font-size: 0.75rem;
    color: #666666;
    margin-top: 0.25rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #000;
}

/* Custom Select - Minimize */
.custom-select-wrapper {
    position: relative;
}

.custom-select {
    border: 1px solid #E3E8EF;
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-select:hover {
    border-color: #000;
}

.custom-select-trigger {
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
}
.custom-select-trigger img {
    width: 60px;
    border-radius: 3px;
}
.custom-select-trigger span {
    margin-right: auto;
    margin-left: 15px;
}

.custom-select-trigger::after {
    content: '\ea4e';
    font-family: 'remixicon';
    font-size: 0.875rem;
    color: #666666;
    transition: transform 0.2s ease;
}

.custom-select.open .custom-select-trigger::after {
    transform: rotate(180deg);
}

.custom-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #E3E8EF;
    border-top: none;
    border-radius: 0 0 5px 5px;
    max-height: 160px;
    overflow-y: auto;
    z-index: 10;
}

.custom-select.open .custom-options {
    display: block;
}

.custom-option {
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.875rem;
}

.custom-option:hover {
    background-color: #f8fafc;
}

.custom-option img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 0.5rem;
    border: 1px solid #E3E8EF;
}

/* Template Buttons - Minimize */
.template-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.btn-template {
    background-color: #f8fafc;
    border: 1px solid #E3E8EF;
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #171717;
}

.btn-template:hover {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/* Minimize Tables */
.table-container {
    background-color: #fff;
    border: 1px solid #E3E8EF;
    border-radius: 5px;
    overflow: hidden;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #E3E8EF;
    font-size: 0.875rem;
}
.table td:last-child span{
        padding: 4px 10px;
}

.table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #171717;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.table tbody tr:hover {
    background-color: #f8fafc;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Minimize Alerts */
.alert {
    padding: 0.75rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.alert-success {
    background-color: #f0fdf4;
    border-color: #22c55e;
    color: #166534;
}

.alert-danger {
    background-color: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

.alert-info {
    background-color: #eff6ff;
    border-color: #3b82f6;
    color: #1e40af;
}

/* Layout Components - Minimize */
.two-column-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.info-box {
    background-color: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 5px;
    padding: 1rem;
    margin-top: 1rem;
}

.info-box-title {
    font-weight: 600;
    color: #0c4a6e;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.info-box-content {
    color: #0c4a6e;
    font-size: 0.75rem;
}

/* Code Block - Minimize */
.code-block {
    background-color: #f1f5f9;
    border: 1px solid #E3E8EF;
    border-radius: 5px;
    padding: 0.75rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.75rem;
    color: #171717;
    overflow-x: auto;
    margin: 0.75rem 0;
}

/* Minimize Footer */
.footer {
    background-color: #fff;
    border-top: 1px solid #E3E8EF;
    padding: 1rem;
    text-align: center;
    color: #666666;
    font-size: 0.75rem;
}

.footer a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

/* Login Page - Minimize */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    padding: 1rem;
}

.login-card {
    background-color: #fff;
    border: 1px solid #E3E8EF;
    border-radius: 5px;
    padding: 1.5rem;
    width: 100%;
    max-width: 360px;
}

.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.25rem;
}

.login-subtitle {
    color: #666666;
    font-size: 0.875rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-button {
    background-color: #000;
    color: #fff;
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.login-button:hover {
    background-color: #171717;
}

.login-button:disabled {
    background-color: #666666;
    cursor: not-allowed;
}

/* Step Cards - New Minimize Component */
.step-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.step-card {
    background-color: #fff;
    border: 1px solid #E3E8EF;
    border-radius: 5px;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
}

.step-card:hover {
    border-color: #000;
    transform: translateY(-1px);
}

.step-card.completed {
    background-color: #f0fdf4;
    border-color: #22c55e;
}

.step-number {
    width: 32px;
    height: 32px;
    background-color: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: #000;
}

.step-card.completed .step-number {
    background-color: #22c55e;
    color: #fff;
}

.step-title {
    font-weight: 600;
    color: #000;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.step-description {
    color: #666666;
    font-size: 0.75rem;
}

/* Responsive Design - Minimize */
@media (max-width:992px){
    .credit-badge::after{
        content: "";
        position: absolute;
        width: 100%;
        height: 1px;
        background: #E3E8EF;
        left: 0;
                top: -17px;
    }
        .two-column-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .nav-link {
        width: 100%;
        border: 1px solid #E3E8EF;
                justify-content: center;
    }
.nav-menu .btn-primary{
    order: 10;
}
.credit-badge {
    order: 9;
            width: 100%;
                         justify-content: center;
        display: flex
;
        align-items: center;
        gap: 7px;
                margin-top: 21px;
                position: relative;
}
.nav-link i {
    margin-top: 0;
}
     .header-container {
        padding: 0.75rem;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        border-top: 1px solid #E3E8EF;
        flex-direction: column;
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .nav-menu.active {
        display: flex;
        box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}
@media (max-width: 768px) {
   
    
    .main-container {
        padding: 1rem 0.75rem;
    }
    
    .page-title {
        font-size: 1.25rem;
    }
    
    .stats-grid {
     grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .table {
        min-width: 500px;
    }
    
    .step-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width:620px){
       .stats-grid {
     grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    } 
}
@media (max-width:576px){
  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
       .stats-grid {
     grid-template-columns: repeat(1, 1fr);
        gap: 0.75rem;
    } 
    .code-block {
            line-break: anywhere;
    }
    .logo {
        text-align: center;
    }
    

    
    .btn-primary,
    .btn-secondary,
    .btn-danger {
        justify-content: center;
        width: 100%;
    }
    
    .stats-grid {
        gap: 0.5rem;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .card-header,
    .card-body {
        padding: 0.75rem;
    }
}

/* Utility Classes - Minimize */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
