body{
    padding:0; 
    margin:0; 
    font-family: "Inter", system-ui, sans-serif;
}
.integration-dashboard{ background-color: #f3f3f5; display:flex; }
/* Sidebar Container */
.integration-dashboard .sidebar {
    max-width: 224px;
    width:18%;
    height:100vh;
    display:inline-block;
    background-color: #fff;
    border-right: 1px solid #E2E8F0;
    padding:12px;
    box-sizing: border-box;
    font-family: "Inter", system-ui, sans-serif;
}
/* Navigation Menu */
.integration-dashboard nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.integration-dashboard nav li {
    margin-bottom: 4px;
}

.integration-dashboard nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    color: #314158;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.integration-dashboard nav a:hover {
    background-color: #e2e8f0;
}

.integration-dashboard nav a.active {
    background-color: #0F172B;
    color: #ffffff;
}

.integration-dashboard .sidebar form {
    margin: 0;
}

.integration-dashboard .logout-link {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    color: #b91c1c;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.integration-dashboard .logout-link:hover {
    background-color: #fee2e2;
}

/* Icon placeholder */
.integration-dashboard  nav svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* nav a.active svg path {
    fill: #fff;
} */
    /* Right Side Content */
.integration-dashboard .content {
    padding: 24px;
    background-color: #f3f3f5;
    vertical-align: top;
    width: 86%;
    box-sizing: border-box;
    display:inline-block; 
}

.integration-dashboard .jobs-container {
    background: white;
    border-radius: 10px;
    border: 1px solid #E2E8F0;;
    padding: 16.5px 17px;
}

.integration-dashboard .jobs-container h4 {
    margin: 0 0 16.5px;
    color: #0A0A0A;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 150% */
    letter-spacing: -0.312px;
}

.integration-dashboard table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.integration-dashboard thead th {
    text-align: left;
    padding: 10px 0px;
    border-bottom: 1px solid rgb(0,0,0,0.1);
    color: #0A0A0A;
    text-align: left;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px; /* 142.857% */
    letter-spacing: -0.15px;
}
.integration-dashboard thead th:nth-child(1), tbody tr td:nth-child(1){
    width:7.6%; padding-left:8px; 
}
.integration-dashboard tbody tr td:nth-child(2){
    /* min-width:139px;  */
    width:14.4%; 
    color: #45556C;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 142.857% */
    letter-spacing: -0.15px;
}
.integration-dashboard thead th:nth-child(3) , tbody tr td:nth-child(3){
    /* min-width:57px;  */
    text-align:right; 
    width:4.4%; 
}
.integration-dashboard thead th:nth-child(4) ,tbody tr td:nth-child(4){
    /* min-width:69px;  */
    text-align:right; 
    width:4.55%; 
}
.integration-dashboard thead th:nth-child(5) ,tbody tr td:nth-child(5){
    /* min-width:78px;  */
    text-align:right; 
    width:6.7%; 
}
.integration-dashboard thead th:nth-child(6) ,tbody tr td:nth-child(6){
    /* min-width:75px;  */
    text-align:right; 
    width:5.7%;
}
.integration-dashboard thead th:nth-child(7) ,tbody tr td:nth-child(7){
    /* min-width:59px;  */
    text-align:right; 
    padding-right:6px; 
    width:4.9%; 
}
.integration-dashboard thead th:nth-child(8) ,tbody tr td:nth-child(8){
    /* min-width:108px;  */
    text-align:left; 
    padding-left:14px; 
    width: 9.3%;
}
.integration-dashboard tbody tr td:nth-child(9){
    /* min-width:110px;  */
    text-align:left; 
    color: #45556C;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 142.857% */
    letter-spacing: -0.15px;
}
.integration-dashboard thead th:nth-child(9){ width:8%; 
    text-align:left;  }
    tbody tr td:nth-child(9){  width:9.4%;  text-align:left; }
.integration-dashboard tbody tr td:nth-child(10){
    /* min-width:170px;  */
    text-align:left; 
    padding-left:15px; 
}
    .integration-dashboard thead th:nth-child(2) , .integration-dashboard tbody tr td:nth-child(2){ padding-left:8px; }
.integration-dashboard thead th:nth-child(10){ text-align:left; /*  min-width:110px; */ width:12.9%;  padding-left:15px;  }
.integration-dashboard thead th:nth-child(11) ,tbody tr td:nth-child(11){
    /* min-width:97px;  */
    text-align:left; 
    width:8.1%; 
    padding-left:10px; 
}
.integration-dashboard thead th:nth-child(12) ,tbody tr td:nth-child(12){
    /* min-width:129px;  */
    text-align:right; 
    width:9.4%; 
    min-width:128px; 
    /* max-width:128px;  */
}
.integration-dashboard thead th:nth-child(2){
    /* min-width:139px;  */
    width:14.4%;
}
.integration-dashboard tbody td {
    padding: 11px 0 11px 0;
    border-bottom: 1px solid rgb(0,0,0, 0.1);
    color: #0A0A0A;
    text-align: left;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 142.857% */
    letter-spacing: -0.15px;
}
.integration-dashboard .status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 12px;
    text-align: center;
}

.integration-dashboard .status.healthy,
.integration-dashboard .status.completed {
    color: #008236;
    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 16px; /* 133.333% */
    border-radius: 8px;
    border: 1px solid #7BF1A8;
    background: #DCFCE7;
}

.integration-dashboard .status.degraded,
.integration-dashboard .status.running {
    border-radius: 8px;
    border: 1px solid #FFD230;
    background: #FEF3C6;
    color: #BB4D00;
    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 16px; /* 133.333% */
}
.integration-dashboard .status.inprogress,
.integration-dashboard .status.failed {
    border-radius: 8px;
    border: 1px solid #E7000B;
    background: #E7000B;
    color: #ffffff;
    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 16px; /* 133.333% */
}
.integration-dashboard .actions {
    margin-right:4px; 
}
.integration-dashboard .actions span{ padding:8px; }
.integration-dashboard .actions svg {
    width: 16px;
    height: 16px;
    color: #475569;
    cursor: pointer;
    transition: color 0.2s ease;
}
.integration-dashboard  tbody td.failed{
    color:#E7000B;
}
.integration-dashboard .actions svg:hover {
    color: #0F172B;
}
.integration-dashboard .table-title{
    color: #0A0A0A;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 150% */
    letter-spacing: -0.312px;
    margin:0;
    margin-bottom:24.5px; 
}
@media screen and (max-width:1439px){   
    .integration-dashboard  .jobs-container { overflow:scroll; }
}
@media screen and (max-width:1199px){ 
    .integration-dashboard thead th, .integration-dashboard tbody td{ padding-right:6px; }
}
.hint {
    text-align: center;
    font-style: italic;
    color: #7c7c7c;
}
.alert-success {
    font-family: "Inter", system-ui, sans-serif;
    background: #ddedff;
    color: #666;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    border: 1px solid #cae3ff;
    font-size: 13px;
    max-width: 500px;
    text-align: center;
    flex-direction: row;
    justify-content: center;
    margin: 0 auto;
    font-weight: bold;
    margin-bottom: 10px;
}
button {
    border: 0;
    background: transparent;
}
/* Table Header Row */
.integration-dashboard .table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

/* Flush Data Button */
.integration-dashboard .btn-flush {
    display: inline-block;
    background-color: #E7000B;
    color: #ffffff;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
}

.integration-dashboard .btn-flush:hover {
    background-color: #b8000a;
    border-color: #a00008;
}

.integration-dashboard .btn-flush:active {
    transform: scale(0.97);
}

.integration-dashboard .btn-flush:disabled {
    background-color: #f3a7a7;
    color: #fff;
    cursor: not-allowed;
}

/* ---------- Settings ---------- */
.settings-card {
    max-width: 640px;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.settings-subtitle {
    margin: 4px 0 0;
    color: #475569;
    font-size: 13px;
}

.settings-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.settings-form label {
    font-size: 13px;
    color: #0f172b;
    font-weight: 600;
}

.settings-form textarea {
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid #d6dee8;
    font-size: 14px;
    font-family: "Inter", system-ui, sans-serif;
    background: #fff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    resize: vertical;
    min-height: 120px;
}

.settings-form textarea:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.field-hint {
    margin: 0;
    font-size: 12px;
    color: #64748b;
}

.btn-settings-save {
    width: auto;
    padding-inline: 18px;
    margin-top: 6px;
}

/* ---------- Auth Pages ---------- */
.auth-page {
    background-color: #f3f3f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    font-family: "Inter", system-ui, sans-serif;
}

.auth-wrapper {
    width: 100%;
    max-width: 480px;
}

.auth-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.auth-header h1 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    color: #0f172b;
}

.auth-header p {
    margin: 0 0 18px;
    color: #475569;
    font-size: 14px;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.auth-form label {
    font-size: 13px;
    color: #0f172b;
    font-weight: 600;
}

.auth-form input {
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid #d6dee8;
    font-size: 14px;
    font-family: "Inter", system-ui, sans-serif;
    background: #fff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-form input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: #0a0a0a;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid #0a0a0a;
    transition: transform 0.1s ease, background 0.2s ease, border-color 0.2s ease;
    box-shadow: none;
}

.btn-primary:hover {
    background: #1f2933;
    border-color: #1f2933;
}

.btn-primary:active {
    transform: translateY(1px);
    background: #050505;
    border-color: #050505;
}

.auth-errors {
    background: #fff2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 13px;
}

.auth-errors ul {
    margin: 0;
    padding-left: 18px;
}

.auth-hint {
    margin-top: 18px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    padding: 12px;
    border-radius: 10px;
    color: #334155;
    font-size: 13px;
}

.auth-hint ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.auth-hint li strong {
    color: #0f172b;
}

/* Overview Page Styles */
.integration-dashboard .overview-container {
    background: white;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    padding: 24px;
}

.integration-dashboard .filter-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.integration-dashboard .filter-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    background: #ffffff;
    color: #314158;
    font-family: Inter;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.integration-dashboard .filter-btn:hover {
    background: #f3f3f5;
    border-color: #0F172B;
}

.integration-dashboard .filter-btn.active {
    background: #0F172B;
    color: #ffffff;
    border-color: #0F172B;
}

.integration-dashboard .stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.integration-dashboard .stat-card {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.integration-dashboard .stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.integration-dashboard .stat-card.success {
    border-left: 4px solid #008236;
}

.integration-dashboard .stat-card.failure {
    border-left: 4px solid #E7000B;
}

.integration-dashboard .stat-card.rate {
    border-left: 4px solid #0F172B;
}

.integration-dashboard .stat-card-header {
    margin-bottom: 12px;
}

.integration-dashboard .stat-card-header h3 {
    margin: 0;
    color: #314158;
    font-family: Inter;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.integration-dashboard .stat-card-value {
    font-family: Inter;
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
    color: #0A0A0A;
    margin-bottom: 8px;
}

.integration-dashboard .stat-card.success .stat-card-value {
    color: #008236;
}

.integration-dashboard .stat-card.failure .stat-card-value {
    color: #E7000B;
}

.integration-dashboard .stat-card.rate .stat-card-value {
    color: #0F172B;
}

.integration-dashboard .stat-card-label {
    font-family: Inter;
    font-size: 12px;
    font-weight: 400;
    color: #7c7c7c;
    line-height: 16px;
}

.integration-dashboard .chart-container {
    background: white;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    padding: 24px;
}

.integration-dashboard .chart-container h4 {
    margin: 0 0 24px;
    color: #0A0A0A;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
}

.integration-dashboard .chart-container canvas {
    max-height: 400px;
}
