/* Stripe-inspired Admin Dashboard Styles */

:root {
    --primary: #635BFF;
    --secondary: #00D924;
    --background: #FAFBFC;
    --text: #32325D;
    --accent: #F6F9FC;
    --warning: #FFA500;
    --border: #E6EBF1;
    --shadow: rgba(99, 91, 255, 0.1);
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

.cryptocurrency--usdc {
  display: inline-block;
  width: 0.8em;  /* Scales with text size */
  height: 0.8em;
  margin-right: 0.2em;
  vertical-align: baseline;
  color: #2775ca;
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M16 0c8.837 0 16 7.163 16 16s-7.163 16-16 16S0 24.837 0 16S7.163 0 16 0m3.352 5.56c-.244-.12-.488 0-.548.243c-.061.061-.061.122-.061.243v.85l.01.104a.86.86 0 0 0 .355.503c4.754 1.7 7.192 6.98 5.424 11.653c-.914 2.55-2.925 4.491-5.424 5.402c-.244.121-.365.303-.365.607v.85l.005.088a.45.45 0 0 0 .36.397c.061 0 .183 0 .244-.06a10.895 10.895 0 0 0 7.13-13.717c-1.096-3.46-3.778-6.07-7.13-7.162zm-6.46-.06c-.061 0-.183 0-.244.06a10.895 10.895 0 0 0-7.13 13.717c1.096 3.4 3.717 6.01 7.13 7.102c.244.121.488 0 .548-.243c.061-.06.061-.122.061-.243v-.85l-.01-.08c-.042-.169-.199-.362-.355-.466c-4.754-1.7-7.192-6.98-5.424-11.653c.914-2.55 2.925-4.491 5.424-5.402c.244-.121.365-.303.365-.607v-.85l-.005-.088a.45.45 0 0 0-.36-.397m3.535 3.156h-.915l-.088.008c-.2.04-.346.212-.4.478v1.396l-.207.032c-1.708.304-2.778 1.483-2.778 2.942c0 2.002 1.218 2.791 3.778 3.095c1.707.303 2.255.668 2.255 1.639c0 .97-.853 1.638-2.011 1.638c-1.585 0-2.133-.667-2.316-1.578c-.06-.242-.244-.364-.427-.364h-1.036l-.079.007a.41.41 0 0 0-.347.418v.06l.033.18c.29 1.424 1.266 2.443 3.197 2.734v1.457l.008.088c.04.198.213.344.48.397h.914l.088-.008c.2-.04.346-.212.4-.477V21.34l.207-.04c1.713-.362 2.84-1.601 2.84-3.177c0-2.124-1.28-2.852-3.84-3.156c-1.829-.243-2.194-.728-2.194-1.578s.61-1.396 1.828-1.396c1.097 0 1.707.364 2.011 1.275a.46.46 0 0 0 .427.303h.975l.079-.006a.413.413 0 0 0 .348-.419v-.06l-.037-.173a3.04 3.04 0 0 0-2.706-2.316V9.142l-.008-.088c-.04-.199-.213-.345-.48-.398z'/%3E%3C/svg%3E");
  background-color: currentColor;
  -webkit-mask-image: var(--svg);
  mask-image: var(--svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* Bootstrap Overrides */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    font-weight: 500;
    box-shadow: 0 2px 4px var(--shadow);
}

.btn-primary:hover {
    background-color: #5A52E8;
    border-color: #5A52E8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--shadow);
}

.btn-success {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-warning {
    background-color: var(--warning);
    border-color: var(--warning);
}

.bg-primary {
    background-color: var(--primary) !important;
}

.text-primary {
    color: var(--primary) !important;
}

/* Navigation */
.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    border-radius: 6px;
    margin: 0 4px;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 76px);
}

/* Cards */
.card {
    border: 1px solid var(--border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-header {
    background-color: var(--accent);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    border-radius: 12px 12px 0 0 !important;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border);
}

/* Metric Cards */
.metric-card {
    border: none;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1;
}

.metric-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6B7280;
    margin: 0;
}

/* Plan Cards */
.plan-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.plan-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(99, 91, 255, 0.15);
}

.price-display {
    margin-top: 8px;
}

.price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.period {
    font-size: 0.875rem;
    color: #6B7280;
    font-weight: 500;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 4px 0;
    font-size: 0.875rem;
    color: var(--text);
}

/* Tables */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    background-color: var(--accent);
    border-bottom: 2px solid var(--border);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text);
    padding: 16px 20px;
}

.table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: var(--accent);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    letter-spacing: 0.025em;
}

.badge.bg-success {
    background-color: var(--secondary) !important;
}

.badge.bg-warning {
    background-color: var(--warning) !important;
    color: #fff;
}

.badge.bg-danger {
    background-color: #EF4444 !important;
}

.badge.bg-info {
    background-color: #3B82F6 !important;
}

/* Forms */
.form-control,
.form-select {
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

/* Avatar */
.avatar-sm {
    width: 40px;
    height: 40px;
    font-size: 0.875rem;
}

/* Process Steps */
.process-steps .step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
}

.process-steps .step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 28px;
    height: 28px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 12px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content strong {
    font-weight: 600;
    color: var(--text);
    display: block;
    margin-bottom: 4px;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6B7280;
}

/* Responsive */
@media (max-width: 768px) {
    .card-body {
        padding: 16px;
    }
    
    .card-header {
        padding: 16px;
    }
    
    .table td,
    .table th {
        padding: 12px 16px;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    .metric-icon {
        width: 40px;
        height: 40px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.3s ease;
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 8px;
    padding: 16px 20px;
    font-weight: 500;
}

.alert-success {
    background-color: #F0FDF4;
    color: #166534;
    border-left: 4px solid var(--secondary);
}

.alert-danger {
    background-color: #FEF2F2;
    color: #DC2626;
    border-left: 4px solid #EF4444;
}

.alert-info {
    background-color: #EFF6FF;
    color: #1D4ED8;
    border-left: 4px solid #3B82F6;
}

/* Custom Spacing */
.p-20 {
    padding: 20px !important;
}

.m-20 {
    margin: 20px !important;
}

.gap-20 {
    gap: 20px !important;
}
