﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

/* ============================================
   SISS Brand Color System
   ============================================ */
:root {
    /* Primary SISS Brand Colors */
    --siss-primary: #3f7faf;
    --siss-primary-light: #6BA3D0;
    --siss-primary-dark: #2D5F8F;
    --siss-primary-accent: #5A94C6;
    
    /* Semantic Colors (universal standards) */
    --color-success: #10B981;
    --color-danger: #EF4444;
    --color-warning: #F59E0B;
    --color-info: #3B82F6;
    
    /* Neutral Grays */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-600: #6B7280;
    --gray-900: #111827;
}

/* Apply SISS Blue to primary elements */
a {
    color: var(--siss-primary);
}

a:hover {
    color: var(--siss-primary-dark);
}

.btn-primary {
    background-color: var(--siss-primary);
    border-color: var(--siss-primary-dark);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--siss-primary-dark);
    border-color: var(--siss-primary-dark);
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: var(--siss-primary);
    border-color: var(--siss-primary-dark);
}

/* Form focus states */
.form-control:focus,
.form-select:focus {
    border-color: var(--siss-primary);
    box-shadow: 0 0 0 0.2rem rgba(63, 127, 175, 0.25);
}

/* ============================================
   UNIFIED BUTTON SYSTEM (.btn-action)
   Use these instead of Bootstrap .btn classes
   for consistent styling across the application
   ============================================ */
.btn-action {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.btn-action:hover {
    text-decoration: none;
}

.btn-action.primary {
    background: var(--siss-primary);
    color: white;
}

.btn-action.primary:hover {
    background: var(--siss-primary-dark);
    color: white;
}

.btn-action.secondary {
    background: #6c757d;
    color: white;
}

.btn-action.secondary:hover {
    background: #5a6268;
    color: white;
}

.btn-action.success {
    background: #28a745;
    color: white;
}

.btn-action.success:hover {
    background: #218838;
    color: white;
}

.btn-action.danger {
    background: #dc3545;
    color: white;
}

.btn-action.danger:hover {
    background: #c82333;
    color: white;
}

.btn-action.warning {
    background: #ffc107;
    color: #212529;
}

.btn-action.warning:hover {
    background: #e0a800;
    color: #212529;
}

.btn-action.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-action.btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
}

.btn-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Block-level button variant */
.btn-action.btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Header Layout Styles */
.header-main-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    padding: 10px 20px;
    gap: 30px;
}

.header-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.header-logo img {
    display: block;
}

.header-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-title-row {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
}

.registration-portal-title {
    font-size: 28px;
    font-weight: 600;
    color: #212529;
    margin: 0;
    padding: 0;
}

.header-divider {
    height: 1px;
    background-color: #e5e5e5;
    margin: 8px 0;
}

.header-navigation-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 8px 0;
}

.header-user {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.nav-home-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #212529;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-home-link:hover {
    color: var(--siss-primary);
    background-color: var(--gray-50);
    text-decoration: none;
}

.nav-home-link i {
    font-size: 18px;
}

/* User Dropdown Styles */
.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #212529;
}

.user-dropdown-toggle:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

.user-dropdown-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(63, 127, 175, 0.25);
}

.user-avatar-icon {
    font-size: 24px;
    color: #6c757d;
}

.user-name {
    font-weight: 500;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 12px;
    color: #6c757d;
    transition: transform 0.2s ease;
}

.user-dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    min-width: 250px;
    margin-top: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #dee2e6;
}

.user-dropdown-menu .dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.15s ease;
}

.user-dropdown-menu .dropdown-item:hover {
    background-color: var(--gray-50);
    color: var(--siss-primary);
}

.user-dropdown-menu .dropdown-item i {
    width: 16px;
    text-align: center;
    color: #6c757d;
}

.user-dropdown-menu .dropdown-header {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6c757d;
    padding: 8px 20px 4px;
    letter-spacing: 0.5px;
}

.dropdown-item-form {
    padding: 0;
    margin: 0;
}

.logout-item {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
}

.logout-item:hover {
    background-color: #f8f9fa !important;
    color: #dc3545 !important;
}

.logout-item i {
    color: #dc3545;
}

/* Button and link colors are handled by CSS variables above (SISS Blue branding) */

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    margin-bottom: 60px;
}

/* Adjust body margin for stacked footer at 992px */
@media (max-width: 992px) {
    body {
        margin-bottom: 120px; /* Taller stacked footer needs more space */
    }
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
}

.registration-container {
    display: grid;
    grid-template-columns: auto auto;
    grid-gap: 10px;
    padding: 10px;
}

.registration-container > div {
}

.navbar-nav a:hover {
    color:#1b6ec2;
    text-decoration: underline;
}

.siss-component-container {
    /* We first create a flex layout context */
    display: flex;
    /* Then we define the flow direction 
     and if we allow the items to wrap 
   * Remember this is the same as:
   * flex-direction: row;
   * flex-wrap: wrap;
   */
    flex-flow: row wrap;
    /* Then we define how is distributed the remaining space */
    justify-content: space-around;
    padding: 0;
    margin: 0;
    list-style: none;
}

.siss-component-card {
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    transition: 0.3s;
    border-radius: 5px; /* 5px rounded corners */
    text-align: center;
    margin: 10px;
}

.siss-component-card img {
    padding: 10px;
    margin: auto;
}

.siss-component-card:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}


.success div {
    text-align: center;
    padding: 40px;
}

.success h1 {
    color: #88B04B;
    font-family: "Nunito Sans", "Helvetica Neue", sans-serif;
    font-weight: 900;
    font-size: 40px;
    margin-bottom: 10px;
}

.success p {
    color: #404F5E;
    /*font-family: "Nunito Sans", "Helvetica Neue", sans-serif;*/
    font-size: 20px;
    margin: 0;
}

.success i {
    color: #9ABC66;
    font-size: 100px;
    line-height: 200px;
    margin-left: -15px;
}

.success-card {
    background: white;
    padding: 60px;
    border-radius: 4px;
    box-shadow: 0 2px 3px #C8D0D8;
    display: inline-block;
    margin: 0 auto;
}

.company-profile p {
    overflow: hidden;
}

.company-profile .label {
    vertical-align: top;
    float: left;
    width: 30%;
    font-weight: 600;
}

.company-profile .value {
    vertical-align: top;
    float: left;
    width: 60%;
}

.edit-plan-buttons {
    padding-bottom: 5px;
}

.noborder th, .noborder td {
    border-top: none !important;
}

/* Global Search Styles */
.navbar-search {
    position: relative;
    display: flex;
    align-items: center;
}

.search-container {
    position: relative;
    width: 400px;
}

.search-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #6c757d;
    pointer-events: none;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding-left: 38px;
    padding-right: 38px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: var(--siss-primary);
    box-shadow: 0 0 0 0.2rem rgba(63, 127, 175, 0.25);
    outline: none;
}

.search-shortcut-hint {
    position: absolute;
    right: 12px;
    color: #adb5bd;
    font-size: 12px;
    font-weight: 600;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    pointer-events: none;
}

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 600px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
}

.search-results-content {
    flex: 1;
    overflow-y: auto;
    max-height: 550px;
}

.search-loading {
    padding: 20px;
    text-align: center;
    color: #6c757d;
}

.search-category {
    border-bottom: 1px solid #f1f3f5;
}

.search-category:last-child {
    border-bottom: none;
}

.search-category-header {
    padding: 12px 16px;
    background: #f8f9fa;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: #495057;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-category-count {
    background: #6c757d;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
}

.search-category-link {
    color: var(--siss-primary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.search-category-link:hover {
    color: var(--siss-primary-dark);
    text-decoration: none;
}

.search-result-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #f1f3f5;
    text-decoration: none;
    display: block;
    color: inherit;
}

.search-result-item:hover {
    background-color: #f8f9fa;
    text-decoration: none;
    color: inherit;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item.selected {
    background-color: #e9ecef;
}

.search-result-title {
    font-weight: 600;
    color: #212529;
    margin-bottom: 4px;
    font-size: 14px;
}

.search-result-meta {
    font-size: 12px;
    color: #6c757d;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.search-result-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.search-footer {
    padding: 12px 16px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    text-align: center;
    flex-shrink: 0;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.search-footer a {
    color: var(--siss-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.search-footer a:hover {
    text-decoration: underline;
}

.search-empty {
    padding: 40px 20px;
    text-align: center;
    color: #6c757d;
}

.search-empty-icon {
    font-size: 48px;
    color: #dee2e6;
    margin-bottom: 12px;
}

.search-empty-text {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.search-empty-hint {
    font-size: 14px;
    color: #adb5bd;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .search-container {
        width: 250px;
    }
    
    .search-shortcut-hint {
        display: none;
    }
}

@media (max-width: 576px) {
    .navbar-search {
        width: 100%;
        margin-top: 10px;
    }
    
    .search-container {
        width: 100%;
    }
}

/* Search Results Page Styles */
.search-page-input-wrapper {
    max-width: 800px;
}

.search-page-input {
    font-size: 16px;
    padding: 12px 16px;
}

.search-page-input:focus {
    border-color: #1b6ec2;
    box-shadow: 0 0 0 0.2rem rgba(27, 110, 194, 0.25);
}

.go-to-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.go-to-link {
    color: #495057;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.15s ease;
    display: flex;
    align-items: center;
}

.go-to-link:hover {
    background-color: var(--gray-50);
    text-decoration: none;
    color: var(--siss-primary);
}

.go-to-link i {
    color: #6c757d;
    font-size: 12px;
}

.view-all-link {
    color: var(--siss-primary);
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
}

.view-all-link:hover {
    text-decoration: underline;
}

.list-group-item {
    border-left: none;
    border-right: none;
}

.list-group-item:first-child {
    border-top: none;
}

/* More results section */
.more-results-list {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
}

.more-results-item {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f3f5;
    background: white;
    transition: background-color 0.15s ease;
}

.more-results-item:last-child {
    border-bottom: none;
}

.more-results-item:hover {
    background-color: #f8f9fa;
}

.more-results-item .font-weight-medium {
    font-weight: 500;
    color: #495057;
}

.view-results-link {
    color: #1b6ec2;
    text-decoration: none;
    font-size: 14px;
}

.view-results-link:hover {
    text-decoration: underline;
}

/* Category heading link style (like Deleted Users) */
.category-heading-link {
    color: #212529;
    text-decoration: none;
    transition: color 0.15s ease;
}

.category-heading-link:hover {
    color: var(--siss-primary);
    text-decoration: none;
}

.category-heading-link i {
    transition: transform 0.15s ease;
}

.category-heading-link:hover i {
    transform: translateX(2px);
}

/* Search results section header box */
.search-result-section {
    margin-bottom: 24px;
}

.search-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 0;
}

.search-result-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #212529;
}

.search-result-header-title i {
    font-size: 16px;
}

.search-result-header-link {
    color: var(--siss-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.search-result-header-link:hover {
    color: var(--siss-primary-dark);
    text-decoration: none;
    transform: translateX(2px);
}

.search-result-header-link i {
    font-size: 12px;
    margin-left: 4px;
}

.search-result-items {
    margin-top: 0;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.search-result-items .list-group {
    border-radius: 0;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.search-result-items .list-group-item:first-child {
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.search-result-items .list-group-item:last-child {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* Integration card styling */
.integration-card {
    transition: all 0.2s ease;
    border-width: 2px;
}

.integration-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.integration-card .card-header {
    border-bottom: none;
}

.integration-card-header-top {
    padding: 0;
}

.integration-logo {
    max-width: 160px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    padding: 10px 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.integration-name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: white;
    display: block;
    text-align: center;
    width: 100%;
}

.integration-id-bar {
    background: rgba(0, 0, 0, 0.15);
    padding: 8px 16px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.integration-id-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.3px;
    word-break: break-all;
}

.integration-card .card-body {
    padding: 20px;
}

/* ============================================
   RESPONSIVE HEADER STYLES
   ============================================ */

/* Logo Variants - Default to full logo */
.header-logo a {
    display: block;
}

.header-logo-full {
    display: block !important;
}

.header-logo-icon {
    display: none !important;
}

/* Make title responsive - shrink text size progressively */
@media (max-width: 1200px) {
    .registration-portal-title {
        font-size: 24px; /* Down from 28px */
    }
}

@media (max-width: 1100px) {
    .registration-portal-title {
        font-size: 22px; /* Slightly smaller */
    }
}

@media (max-width: 1000px) {
    .registration-portal-title {
        font-size: 20px; /* Even smaller */
    }
}

/* Tablet (992px) - Switch to icon logo, hide Home text */
@media (max-width: 992px) {
    /* Switch to compact icon logo */
    .header-logo-full {
        display: none !important;
    }
    
    .header-logo-icon {
        display: block !important;
    }
    
    /* Keep title but make it smaller */
    .registration-portal-title {
        font-size: 18px;
    }
    
    /* Hide "Home" text, keep icon only */
    .nav-home-link span {
        display: none;
    }
    
    .nav-home-link {
        padding: 8px;
        min-width: 40px;
        justify-content: center;
    }
    
    /* Reduce header padding */
    .header-main-container {
        padding: 10px 15px;
        gap: 20px;
    }
    
    /* Shrink search bar */
    .search-container {
        width: 250px;
    }
}

/* Mobile (768px and below) - Hide title, reorganize layout */
@media (max-width: 768px) {
    /* NOW hide the title */
    .header-title-row {
        display: none;
    }
    
    .header-divider {
        display: none;
    }
    
    /* Reorganize header layout for mobile */
    .header-main-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 15px;
    }
    
    /* Logo stays top-left */
    .header-logo {
        order: 1;
    }
    
    /* User dropdown moves top-right */
    .header-user {
        order: 2;
    }
    
    /* Navigation moves to second row, full width */
    .header-center {
        order: 3;
        width: 100%;
    }
    
    /* Search takes full width of navigation row */
    .search-container {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .header-navigation-row {
        gap: 15px;
    }
    
    /* Smaller logo */
    .header-logo-icon {
        height: 45px !important;
    }
}

/* Small Mobile (576px and below) - Maximum compactness */
@media (max-width: 576px) {
    .header-main-container {
        padding: 10px;
    }
    
    /* Hide user name, show icon only */
    .user-name {
        display: none;
    }
    
    .dropdown-arrow {
        display: none;
    }
    
    .user-dropdown-toggle {
        padding: 8px;
        min-width: 40px;
    }
    
    /* Compact search input */
    .search-input {
        font-size: 14px;
        padding-left: 36px;
    }
    
    .search-shortcut-hint {
        display: none;
    }
    
    /* Smallest logo for tiny screens */
        .header-logo-icon {
            height: 40px !important;
        }
    }

    /* ============================================
       RESPONSIVE FOOTER STYLES
       ============================================ */

    /* Footer at 992px: Version drops under copyright */
    @media (max-width: 992px) {
        .footer .row {
            flex-direction: column;
            text-align: center !important;
        }
    
        .footer .col-4 {
            width: 100%;
            max-width: 100%;
            flex: 0 0 100%;
        }
    
        .footer .text-end {
            text-align: center !important;
        }
    
        .footer {
            line-height: normal;
            padding: 15px 0;
            height: auto; /* Allow footer to grow with content */
        }
    
        .footer .col-4:not(:last-child) {
            margin-bottom: 8px;
        }
    }

    /* Additional footer adjustments for smaller screens */
    @media (max-width: 576px) {
        .footer {
            font-size: 0.85rem;
        }
    
        body {
            margin-bottom: 140px; /* Even more space for very small screens */
        }
    }











