/* Auth page styles */
.auth-page {
    background-color: #f6f9ff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 0;
}

.auth-container {
    max-width: 450px;
    width: 100%;
}

.auth-card {
    background: white;
    border-radius: 5px;
    box-shadow: 0px 0 30px rgba(1, 41, 112, 0.1);
    padding: 2rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header img {
    max-height: 50px;
    margin-bottom: 1rem;
}

.auth-header h4 {
    font-weight: 600;
    color: #012970;
    font-family: "Nunito", sans-serif;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form .form-control {
    border-radius: 4px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(1, 41, 112, 0.2);
}

.auth-form .form-control:focus {
    border-color: rgba(1, 41, 112, 0.3);
    box-shadow: 0 0 10px 0 rgba(1, 41, 112, 0.15);
}

.auth-form .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 4px;
}

.auth-form .btn-primary {
    background-color: #4154f1;
    border-color: #4154f1;
}

.auth-form .btn-primary:hover {
    background-color: #717ff5;
    border-color: #717ff5;
}

.auth-form .btn-block {
    width: 100%;
}

.auth-divider {
    text-align: center;
    position: relative;
    margin: 1.5rem 0;
}

.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e9ecef;
    z-index: 1;
}

.auth-divider span {
    position: relative;
    z-index: 2;
    background-color: white;
    padding: 0 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.auth-social-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.auth-social-button {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.auth-social-button:hover {
    background-color: #f8f9fa;
}

.auth-links {
    margin-top: 1rem;
    text-align: center;
}

.auth-links a {
    color: #4154f1;
    text-decoration: none;
}

.auth-links a:hover {
    color: #717ff5;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .auth-container {
        width: 90%;
    }
}

/* Organization pages styles */
.organization-layout .row {
    gap: 1.5rem;
}

.organization-layout .card {
    border: none;
    border-radius: 5px;
    box-shadow: 0px 0 30px rgba(1, 41, 112, 0.1);
}

.organization-sidebar .list-group {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0px 0 30px rgba(1, 41, 112, 0.1);
}

.organization-sidebar .list-group-item {
    border: none;
    padding: 0.85rem 1.25rem;
    font-weight: 600;
    position: relative;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.organization-sidebar .list-group-item a {
    color: #012970;
    text-decoration: none;
    display: block;
}

.organization-sidebar .list-group-item:hover {
    background-color: #f6f9ff;
}

.organization-sidebar .list-group-item.active {
    background-color: #f6f9ff;
    color: #4154f1;
    border-left: 3px solid #4154f1;
}

.organization-sidebar .list-group-item.active a {
    color: #4154f1;
}

.organization-content .card-body {
    padding: 20px;
}

.organization-content .card-header {
    background-color: #fff;
    border-color: #ebeef4;
    padding: 15px 20px;
}

.organization-content .card-header h5 {
    margin-bottom: 0;
    font-weight: 600;
    color: #012970;
    font-family: "Nunito", sans-serif;
}

.organization-content .form-label {
    font-weight: 600;
    color: rgba(1, 41, 112, 0.6);
}

.organization-content .form-control,
.organization-content .form-select {
    border-radius: 4px;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(1, 41, 112, 0.2);
    background-color: #fff;
}

.organization-content .form-control:focus,
.organization-content .form-select:focus {
    border-color: rgba(1, 41, 112, 0.3);
    background-color: #fff;
    box-shadow: 0 0 10px 0 rgba(1, 41, 112, 0.15);
}

.organization-content .table {
    margin-bottom: 0;
}

.organization-content .table thead th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #012970;
    border-top: none;
    padding: 15px;
    background-color: #f6f9ff;
}

.organization-content .table tbody td {
    padding: 15px;
    vertical-align: middle;
    border-color: #ebeef4;
}

.organization-content .table tbody tr:hover {
    background-color: #f6f9ff;
}

.organization-content .btn {
    border-radius: 4px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
}

.organization-content .btn-primary {
    background-color: #4154f1;
    border-color: #4154f1;
}

.organization-content .btn-primary:hover {
    background-color: #717ff5;
    border-color: #717ff5;
}

.organization-content .btn-outline-primary {
    color: #4154f1;
    border-color: #4154f1;
}

.organization-content .btn-outline-primary:hover {
    background-color: #4154f1;
    color: #fff;
}

.team-member-row {
    border-radius: 4px;
    transition: background-color 0.15s ease-in-out;
}

.team-member-row:hover {
    background-color: #f6f9ff;
}

.team-member-role {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 50px;
    background-color: rgba(65, 84, 241, 0.1);
    color: #4154f1;
}

.team-member-role.role-admin {
    background-color: rgba(65, 84, 241, 0.1);
    color: #4154f1;
}

.team-member-role.role-member {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.team-member-name {
    font-weight: 500;
    color: #012970;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.team-member-email {
    color: #6c757d;
    font-size: 0.85rem;
}

/* Profile pages styles */
.profile-layout .row {
    gap: 1.5rem;
}

.profile-layout .card {
    border: none;
    border-radius: 5px;
    box-shadow: 0px 0 30px rgba(1, 41, 112, 0.1);
}

.profile-sidebar .list-group {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0px 0 30px rgba(1, 41, 112, 0.1);
}

.profile-sidebar .list-group-item {
    border: none;
    padding: 0.85rem 1.25rem;
    font-weight: 600;
    position: relative;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.profile-sidebar .list-group-item a {
    color: #012970;
    text-decoration: none;
    display: block;
}

.profile-sidebar .list-group-item:hover {
    background-color: #f6f9ff;
}

.profile-sidebar .list-group-item.active {
    background-color: #f6f9ff;
    color: #4154f1;
    border-left: 3px solid #4154f1;
}

.profile-sidebar .list-group-item.active a {
    color: #4154f1;
}

.profile-content .card-body {
    padding: 20px;
}

.profile-content .card-header {
    background-color: #fff;
    border-color: #ebeef4;
    padding: 15px 20px;
}

.profile-content .card-header h5 {
    margin-bottom: 0;
    font-weight: 600;
    color: #012970;
    font-family: "Nunito", sans-serif;
}

.profile-content .form-label {
    font-weight: 600;
    color: rgba(1, 41, 112, 0.6);
}

.profile-content .form-control,
.profile-content .form-select {
    border-radius: 4px;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(1, 41, 112, 0.2);
    background-color: #fff;
}

.profile-content .form-control:focus,
.profile-content .form-select:focus {
    border-color: rgba(1, 41, 112, 0.3);
    background-color: #fff;
    box-shadow: 0 0 10px 0 rgba(1, 41, 112, 0.15);
}

.profile-content .btn {
    border-radius: 4px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
}

.profile-content .btn-primary {
    background-color: #4154f1;
    border-color: #4154f1;
}

.profile-content .btn-primary:hover {
    background-color: #717ff5;
    border-color: #717ff5;
}

/* Compact alert styles */
.alert.compact-alert {
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
}

.alert.compact-alert .d-flex {
    align-items: center;
}

.alert.compact-alert .bi {
    font-size: 1.2rem !important;
}

.alert.compact-alert h6 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.alert.compact-alert p {
    font-size: 0.8rem;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Error pages styles */
.error-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 2rem 0;
}

.error-content {
    max-width: 500px;
    width: 100%;
    text-align: center;
    padding: 3rem 2rem;
}

.error-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    background-color: #f6f9ff;
    color: #4154f1;
    margin-bottom: 1.5rem;
}

.error-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #012970;
    font-family: "Nunito", sans-serif;
}

.error-message {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.error-action {
    margin-top: 1.5rem;
}

.error-action .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 4px;
}

/* Pricing table styles */
.pricing-amount {
    margin-bottom: 0.5rem;
    line-height: 1;
    text-align: center;
}

.pricing-amount .amount-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.pricing-amount .currency {
    font-size: 1.5rem;
    font-weight: 600;
    vertical-align: top;
    position: relative;
    top: 0.25rem;
    margin-right: 0.15rem;
    color: #012970;
}

.pricing-amount .amount {
    font-size: 3rem;
    font-weight: 700;
    word-break: break-word;
    max-width: 100%;
    color: #012970;
}

.pricing-amount .period {
    font-size: 1rem;
    color: #6c757d;
    margin-left: 0.15rem;
    display: block;
}

.plan-features ul li {
    padding: 0.5rem 0;
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
    min-height: 2.5rem;
}

.plan-features ul li i {
    margin-top: 0.15rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
    color: #198754;
}

.pricing-card {
    transition: all 0.3s;
    height: 100%;
    max-width: 280px;
    width: 100%;
    margin: 0 auto;
    border-radius: 5px !important;
    border: none;
    box-shadow: 0px 0 30px rgba(1, 41, 112, 0.1);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(1, 41, 112, 0.15);
}

.pricing-card.current {
    border-color: #198754;
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.2);
    z-index: 1;
    background-color: rgba(25, 135, 84, 0.03);
}

.pricing-card .btn {
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 4px;
    padding: 0.5rem 1rem !important;
}

.pricing-card .btn i {
    font-size: 0.875rem;
    margin-right: 0.25rem !important;
}

.pricing-popular {
    position: absolute;
    top: -10px;
    right: 1rem;
    background: #4154f1;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    box-shadow: 0 3px 6px rgba(1, 41, 112, 0.1);
    z-index: 2;
}

/* Transaction Details Page Styles */
/* Transaction Summary Stats */
.transaction-summary .col-lg-3 {
    transition: all 0.2s ease;
}

.transaction-summary .col-lg-3:hover {
    background-color: rgba(65, 84, 241, 0.05);
}

/* Custom Badge Sizes */
.badge.fs-6 {
    font-size: 0.85rem !important;
}

/* Transaction Details Card Styles */
.transaction-info-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    border-color: #ebeef4;
    padding: 15px 20px;
}

/* Billing page specific styles */
.billing-sidebar .list-group-item.active a {
    color: #4154f1;
}

/* Empty States styling common across all apps */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
}

.empty-state-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #f6f9ff;
    margin-bottom: 20px;
}

.empty-state-icon i {
    font-size: 2rem;
    color: #4154f1;
}

.empty-state-title {
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 10px;
    color: #012970;
}

.empty-state-description {
    color: #6c757d;
    margin-bottom: 20px;
    max-width: 500px;
}

.empty-state-action {
    margin-top: 0.5rem;
}

/* Status indicators common across all apps */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 50rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge i {
    margin-right: 0.25rem;
}

.status-badge.success {
    background-color: #d1e7dd;
    color: #198754;
}

.status-badge.warning {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.danger {
    background-color: #f8d7da;
    color: #dc3545;
}

.status-badge.info {
    background-color: #cff4fc;
    color: #0dcaf0;
}

.status-badge.secondary {
    background-color: #e2e3e5;
    color: #6c757d;
}

/* Consistent card styling across all apps */
.card {
    border: none;
    border-radius: 5px;
    box-shadow: 0px 0 30px rgba(1, 41, 112, 0.1);
    margin-bottom: 30px;
}

.card-header {
    background-color: #fff;
    border-color: #ebeef4;
    padding: 15px 20px;
}

.card-title {
    font-weight: 600;
    color: #012970;
    font-family: "Nunito", sans-serif;
}

.card-body {
    padding: 20px;
}

/* Accessibility Improvements */
:focus-visible {
    outline: 3px solid #4154f1;
    outline-offset: 2px;
}

@media (prefers-reduced-motion) {
    * {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}