/* FinTechIQ Middleware - Custom Styles */

/* Professional Card Components */
.pro-card {
    background-color: white;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.pro-card-hover {
    background-color: white;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    transition: box-shadow 200ms;
}

.pro-card-hover:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* Stat Display */
.stat-value {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 600;
    color: #111827;
    letter-spacing: -0.025em;
}

.stat-label {
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: #6b7280;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 0.375rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
    box-shadow: 0 0 0 1px inset;
}

.status-badge-pending {
    background-color: #fef3c7;
    color: #b45309;
    box-shadow: 0 0 0 1px rgba(202, 138, 4, 0.2) inset;
}

.status-badge-registered {
    background-color: #dbeafe;
    color: #1e40af;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2) inset;
}

.status-badge-sent {
    background-color: #e0e7ff;
    color: #4338ca;
    box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.2) inset;
}

.status-badge-completed {
    background-color: #dcfce7;
    color: #15803d;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2) inset;
}

.status-badge-timeout {
    background-color: #fee2e2;
    color: #b91c1c;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.2) inset;
}

/* Icon Containers */
.icon-container {
    display: flex;
    height: 2.5rem;
    width: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background-color: #f3f4f6;
}

.icon-container-primary {
    display: flex;
    height: 2.5rem;
    width: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background-color: #111827;
    color: white;
}

/* Login Page Background */
.login-bg {
    background-color: #f8fafc;
    background-image:
        radial-gradient(at 40% 20%, rgba(241, 245, 249, 1) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(226, 232, 240, 0.5) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(241, 245, 249, 1) 0px, transparent 50%),
        radial-gradient(at 80% 100%, rgba(226, 232, 240, 0.5) 0px, transparent 50%);
}

/* Form Elements */
.form-label {
    display: block;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.375rem;
}

.form-input {
    display: block;
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    background-color: white;
    color: #111827;
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:focus {
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 0 2px #111827, 0 0 0 3px white;
}

.form-input:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
}

.form-select {
    display: block;
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    background-color: white;
    color: #111827;
}

.form-select:focus {
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 0 2px #111827, 0 0 0 3px white;
}

/* Button Variants */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    background-color: #111827;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: white;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    transition: background-color 150ms;
    cursor: pointer;
    border: none;
}

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

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #111827;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    background-color: white;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: #374151;
    box-shadow: 0 0 0 1px #d1d5db inset;
    transition: background-color 150ms;
    cursor: pointer;
    border: none;
}

.btn-secondary:hover {
    background-color: #f9fafb;
}

.btn-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #6b7280;
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    background-color: #dc2626;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: white;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    transition: background-color 150ms;
    cursor: pointer;
    border: none;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

.btn-danger:focus {
    outline: none;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #dc2626;
}

.btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: #374151;
    transition: background-color 150ms;
    cursor: pointer;
    border: none;
    background-color: transparent;
}

.btn-ghost:hover {
    background-color: #f3f4f6;
}

.btn-ghost:focus {
    outline: none;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #6b7280;
}

/* Table Styles */
.table-header {
    background-color: #f9fafb;
    text-align: left;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
}

.table-cell {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #111827;
}

.table-row {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 150ms;
}

.table-row:hover {
    background-color: #f9fafb;
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 600;
    color: #111827;
    letter-spacing: -0.025em;
}

.page-description {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #6b7280;
}

/* Sidebar Styles */
.sidebar {
    width: 16rem;
    background-color: white;
    border-right: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #374151;
    text-decoration: none;
    transition: background-color 150ms;
}

.sidebar-link:hover {
    background-color: #f3f4f6;
}

.sidebar-link.active {
    background-color: rgba(105, 56, 239, 0.1);
    color: #6938ef;
    font-weight: 500;
}

.sidebar-link svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Divider */
.divider {
    border-top: 1px solid #e2e8f0;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-right-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modal/Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    max-width: 42rem;
    width: 100%;
    margin: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

/* Utility Classes */
.error-message {
    padding: 0.75rem 1rem;
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 0.375rem;
    color: #b91c1c;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.success-message {
    padding: 0.75rem 1rem;
    background-color: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 0.375rem;
    color: #15803d;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.info-message {
    padding: 0.75rem 1rem;
    background-color: #dbeafe;
    border: 1px solid #bfdbfe;
    border-radius: 0.375rem;
    color: #1e40af;
    font-size: 0.875rem;
    line-height: 1.25rem;
}
