/* SPO Migration Navigator Styles - Updated with Bayleys Brand Colors */
:root {
    --primary-color: #00234B;       /* Bayleys Primary Blue */
    --secondary-color: #265076;     /* Bayleys Accent Blue */
    --background-color: #f5f5f5;
    --card-background: #ffffff;
    --text-color: #333333;
    --border-color: #E6E7E8;        /* Bayleys Grey */
    --hover-color: #f0f0f0;
}

/* Bayleys Font Definitions */
@font-face {
    font-family: 'Gotham Bold';
    src: local('Gotham Bold'), local('Gotham-Bold');
    font-weight: bold;
}
@font-face {
    font-family: 'Gotham Book';
    src: local('Gotham Book'), local('Gotham-Book');
    font-weight: normal;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Gotham Book', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Help ensure the logo displays properly */
#bayleys-logo {
    max-height: 60px;
    width: auto;
    display: block;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #00234B; /* Bayleys Primary Blue */
    color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    flex: 0 0 auto;
    margin-right: 20px;
}

#bayleys-logo {
    max-height: 60px;
    width: auto;
    display: block;
}

.header-text {
    flex: 1 1 auto;
    text-align: center;
}

header h1 {
    margin-bottom: 10px;
    font-family: 'Gotham Bold', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.search-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.search-container input {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    margin-right: 10px;
    margin-bottom: 10px;
    flex-grow: 1;
}

.search-container button {
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    font-family: 'Gotham Bold', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.search-container button:hover {
    background-color: var(--secondary-color);
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.filter-container label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.filter-container input[type="checkbox"] {
    margin-right: 5px;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.tab-button {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Gotham Bold', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    position: relative;
    transition: color 0.3s;
}

.tab-button:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-button.active {
    color: var(--primary-color);
}

.tab-button.active:after {
    transform: scaleX(1);
}

.results-container {
    background-color: var(--card-background);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    min-height: 400px;
}

.result-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item:hover {
    background-color: var(--hover-color);
}

.result-item h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.result-path {
    font-family: monospace;
    background-color: #f7f7f7;
    padding: 8px;
    border-radius: 3px;
    margin: 8px 0;
    word-break: break-all;
    border-left: 3px solid var(--primary-color);
}

.result-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary-color);
    text-decoration: none;
    font-family: 'Gotham Bold', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.result-link:hover {
    background-color: #E6E7E8; /* Bayleys Grey */
    text-decoration: none;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 15px;
}

.pagination button {
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Gotham Book', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.2s;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pagination button:hover {
    background-color: var(--secondary-color);
}

.pagination button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

footer {
    text-align: center;
    margin-top: 30px;
    padding: 10px;
    color: #666;
    font-size: 14px;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.welcome-message {
    text-align: center;
    padding: 30px;
}

.welcome-message h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.welcome-message ul {
    list-style-position: inside;
    margin: 20px 0;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--card-background);
    margin: 10% auto;
    padding: 20px;
    border-radius: 5px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover {
    color: var(--text-color);
}

.modal h2, .modal h3 {
    margin-bottom: 15px;
}

.modal ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

/* Responsive design */
@media (min-width: 768px) {
    .search-container {
        flex-direction: row;
        align-items: center;
    }
    
    .search-container input {
        margin-bottom: 0;
    }
    
    .filter-container {
        margin-left: auto;
    }
}

@media (max-width: 767px) {
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab-button {
        flex: 1 1 auto;
    }
}

/* Special styles for specific resource types */
.result-item.folder {
    border-left: 4px solid #0078d4;
}

.result-item.agent {
    border-left: 4px solid #2b7c2b;
}

.result-item.team {
    border-left: 4px solid #8764b8;
}

.result-item.room {
    border-left: 4px solid #f7630c;
}

.result-type-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: white;
    margin-right: 10px;
}

.result-type-badge.folder {
    background-color: #0078d4;
}

.result-type-badge.agent {
    background-color: #2b7c2b;
}

.result-type-badge.team {
    background-color: #8764b8;
}

.result-type-badge.room {
    background-color: #f7630c;
}


/* Additional styles for JSON loading */
/* Additional styles for JSON loading */
.loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 5px;
    z-index: 1000;
}

/* Toast notification styles */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: white;
    padding: 15px;
    border-radius: 5px;
    display: none;
    z-index: 1000;
    max-width: 300px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.toast.success {
    background-color: #4CAF50;
}

.toast.error {
    background-color: #F44336;
}

.toast.info {
    background-color: #2196F3;
}

