/* ICON Org Chart Styles */

/* Color Scheme */
:root {
    --navy-blue: #0B1F38;
    --electric-blue: #0066FF;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--light-gray);
    color: var(--navy-blue);
    line-height: 1.6;
}

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(11, 31, 56, 0.1);
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--navy-blue);
}

/* Action Buttons Container */
.action-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding: 10px 0;
}

/* Export Button Styles */
.export-btn {
    background-color: #0066FF;
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.export-btn:hover {
    background-color: #0052cc;
}

/* Chart Container - Dark Navy Premium Background */
#chart-container {
    background-color: #0B1F38; /* Deep Navy background for the chart area */
    background-image: radial-gradient(circle at center, #102A4C 0%, #0B1F38 100%); /* Adds a subtle premium glow */
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Employee Node Styles */
.org-node {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    box-sizing: border-box;
    background: #ffffff;
    border: 2px solid #0B1F38;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.org-node:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(11, 31, 56, 0.15);
}

.org-node .photo {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #0066FF;
    margin-bottom: 8px;
}

.org-node .name {
    font-size: 15px;
    font-weight: 700;
    color: #0B1F38;
    margin-bottom: 4px;
    line-height: 1.2;
}

.org-node .title {
    font-size: 13px;
    font-weight: 600;
    color: #0066FF;
    line-height: 1.2;
}

/* Node Interaction States */
.org-node.collapsed {
    cursor: pointer;
}

.org-node.collapsed .title::after {
    content: " ▼";
    font-size: 0.8em;
}

/* Zoom Controls */
.zoom-controls {
    position: absolute;
    top: 60px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 100;
}

.zoom-btn {
    background-color: var(--white);
    border: 2px solid var(--navy-blue);
    border-radius: 6px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    color: var(--navy-blue);
}

.zoom-btn:hover {
    background-color: var(--electric-blue);
    color: var(--white);
}

/* Login Overlay Styles */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 31, 56, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.login-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 300px;
}

.login-form h2 {
    color: var(--navy-blue);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

#password-input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
}

#password-input:focus {
    outline: none;
    border-color: var(--electric-blue);
}

#login-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--electric-blue);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

#login-btn:hover {
    background-color: #0052cc;
}

.login-error {
    display: none;
    color: #dc3545;
    margin-top: 15px;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .export-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .org-node {
        min-width: 180px;
        padding: 15px;
    }
    
    .org-node .photo {
        width: 80px;
        height: 80px;
    }
 }

@media (max-width: 480px) {
    .page-container {
        padding: 10px;
    }
    
    .header {
        padding: 15px;
    }
    
    .org-node {
        min-width: 150px;
        padding: 12px;
    }
    
    .org-node .photo {
        width: 70px;
        height: 70px;
    }
    
    .org-node .name {
        font-size: 1rem;
    }
    
    .login-form {
        padding: 30px 20px;
        min-width: 250px;
    }
}