/* TRACXN PREMIUM ADMIN STYLING - Universal (Works on Dashboard, Settings & License Pages) */

.tracxn-wrap {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.tracxn-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 35px 40px;
    border-radius: 18px;
    margin-bottom: 35px;
    box-shadow: 0 12px 35px rgba(30, 64, 175, 0.25);
    position: relative;
    overflow: hidden;
}

.tracxn-header::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -40%;
    width: 120%;
    height: 120%;
    background: rgba(255, 255, 255, 0.12);
    transform: rotate(25deg);
    pointer-events: none;
}

.tracxn-header h1 {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: white;
}

.tracxn-header p {
    margin: 0;
    font-size: 17px;
    opacity: 0.95;
}

/* Premium Glassmorphism Cards */
.tracxn-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 32px;
    margin-bottom: 35px;
    transition: all 0.3s ease;
}

.tracxn-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
}

.tracxn-card h2 {
    margin: 0 0 24px 0;
    color: #1e40af;
    font-size: 24px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 3px solid #3b82f6;
    display: inline-block;
}

/* Stats Grid */
.tracxn-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 28px 0;
}

.tracxn-stat-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    padding: 28px;
    border-radius: 14 FOURpx;
    text-align: center;
    border-left: 6px solid #3b82f6;
    transition: all 0.3s ease;
}

.tracxn-stat-card.critical {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.tracxn-stat-value {
    font-size: 2.8em;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    line-height: 1;
}

.tracxn-stat-label {
    color: #64748b;
    font-size: 15px;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
}

/* Enhanced Tables */
.tracxn-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 25px 0;
    font-size: 15px;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.tracxn-table th {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: white;
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
}

.tracxn-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s;
}

.tracxn-table tr:hover td {
    background: #f8fafc;
}

.tracxn-table td strong,
.tracxn-table td a {
    color: #1e40af;
    font-weight: 600;
}

.tracxn-table td[style*="right"] {
    text-align: right;
}

/* Action Buttons Area */
.tracxn-actions {
    margin-top: 50px;
    padding: 30px 0 10px;
    border-top: 2px dashed #cbd5e1;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.tracxn-actions .button {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tracxn-actions .button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.35);
}

.tracxn-actions .button-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
}

.tracxn-actions .button-secondary {
    background: #e2e8f0;
    color: #1e293b;
}

/* License Status Badge */
.tracxn-license-status {
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    margin-top: 18px;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.tracxn-license-status.valid {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}

.tracxn-license-status.invalid {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
}

/* Form Enhancements (Settings & License Pages) */
.form-table th {
    width: 220px;
    padding: 18px 0;
    font-weight: 600;
    color: #1e40af;
}

.form-table td {
    padding: 18px 0;
}

.form-table input.regular-text,
.form-table textarea.large-text,
.form-table select {
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    padding: 12px 16px;
    font-size: 15px;
}

.form-table .description {
    margin-top: 8px;
    color: #64748b;
}

/* Responsive */
@media (max-width: 782px) {
    .tracxn-stats-grid {
        grid-template-columns: 1fr;
    }
    .tracxn-actions {
        flex-direction: column;
    }
    .tracxn-actions .button {
        width: 100%;
    }
    .tracxn-header h1 {
        font-size: 26px;
    }
}

/* Keep your existing frontend fixes */
button:hover {
    background-color: transparent !important;
}
/*.cashflow .border-line table tr td {*/
/*    width: 98px !important;*/
/*}*/
.table-responsive tr {
    border-bottom: 1px solid #ccc;
}
.company-ratios ul li {
    padding: 15px 10px !important;
}
.company-ratios ul li span.nowrap.value {
    font-weight: bold;
    font-size: 13px;
    color: #000;
}
