/* Main container styles */
#dune-skill-builder {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    color: #e0e0e0;
}

body {
    background-color: #111111;
    color: #e0e0e0;
}

/* Class Selection Tabs */
.dasb-class-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 20px;
}

.dasb-class-tab {
    padding: 10px 20px;
    background-color: #222222;
    border: 1px solid #b8860b; /* Dark gold border */
    color: #b8860b;
    border-radius: 0px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s;
}

.dasb-class-tab:hover {
    background-color: #333333;
    box-shadow: 0 0 10px rgba(184, 134, 11, 0.5);
}

.dasb-class-tab.active {
    background-color: #333333;
    color: #ffd700; /* Gold */
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* Skill Tree Canvas Container */
.dasb-skill-tree-container {
    width: 100%;
    max-width: 1000px;
    height: 700px;
    margin: 0 auto 20px;
    border: 1px solid #b8860b;
    border-radius: 2px;
    overflow: hidden;
    background-color: #111111;
    position: relative;
}

/* Build Panel */
.dasb-build-panel {
    background-color: #222222;
    border: 1px solid #b8860b;
    border-radius: 2px;
    padding: 20px;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.dasb-points-display {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffd700;
}

.dasb-section-heading {
    font-size: 16px;
    font-weight: bold;
    margin: 15px 0 10px;
    color: #ffd700;
    text-transform: uppercase;
}

.dasb-ability-dropdowns,
.dasb-technique-dropdowns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.dasb-dropdown {
    width: 300px;
    padding: 8px;
    background-color: #333333;
    border: 1px solid #b8860b;
    border-radius: 2px;
    font-size: 14px;
    color: #e0e0e0;
}

.dasb-dropdown option {
    background-color: #333333;
    color: #e0e0e0;
}

.dasb-passives-list {
    list-style-type: none;
    padding: 0;
    margin: 0 0 15px;
}

.dasb-passives-list li {
    font-size: 14px;
    margin-bottom: 10px;
    padding: 8px;
    background-color: #333333;
    border-left: 3px solid #b8860b;
    border-radius: 2px;
}

.passive-header {
    font-size: 14px;
    color: #ffd700;
    margin-bottom: 5px;
}

.passive-bonuses {
    margin-top: 5px;
    margin-left: 10px;
    font-size: 13px;
}

.passive-bonus {
    color: #cccccc;
    margin-bottom: 3px;
}

.dasb-controls {
    display: flex;
    gap: 15px;
}

.dasb-button {
    background-color: #333333;
    color: #ffd700;
    border: 1px solid #b8860b;
    border-radius: 2px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: bold;
    transition: all 0.3s;
}

.dasb-button:hover {
    background-color: #444444;
    box-shadow: 0 0 10px rgba(184, 134, 11, 0.5);
}

.dasb-button:disabled {
    background-color: #333333;
    color: #666666;
    border-color: #666666;
    cursor: not-allowed;
    box-shadow: none;
}

/* Save Build Form */
.dasb-save-form {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.dasb-save-input {
    padding: 8px;
    background-color: #333333;
    border: 1px solid #b8860b;
    border-radius: 2px;
    flex-grow: 1;
    font-size: 14px;
    color: #e0e0e0;
}

/* Skill Tree Node Styles */
.dasb-node-title {
    position: absolute;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #ffd700;
    text-transform: uppercase;
}

/* Responsive styles */
@media (max-width: 1024px) {
    #dune-skill-builder {
        padding: 10px;
    }
    
    .dasb-class-tabs {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .dasb-class-tab {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .dasb-skill-tree-container {
        height: 600px;
    }
}

@media (max-width: 768px) {
    .dasb-class-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        gap: 5px;
    }
    
    .dasb-class-tab {
        flex: 0 0 auto;
        font-size: 12px;
        padding: 6px 10px;
        white-space: nowrap;
    }
    
    .dasb-ability-dropdowns,
    .dasb-technique-dropdowns {
        flex-direction: column;
    }
    
    .dasb-dropdown {
        width: 100%;
    }
    
    .dasb-skill-tree-container {
        height: 500px;
    }
    
    .dasb-controls {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .dasb-button {
        font-size: 14px;
        padding: 8px 12px;
        flex: 1 0 auto;
    }
    
    .dasb-share-url-container {
        flex-direction: column;
    }
    
    .dasb-share-url {
        border-radius: 2px;
        margin-bottom: 5px;
    }
    
    .dasb-copy-button {
        border-radius: 2px;
        width: 100%;
        padding: 8px;
    }
    
    .dasb-qrcode-display {
        max-width: 100%;
    }
    
    .dasb-qrcode-image {
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    #dune-skill-builder {
        padding: 10px 5px;
    }
    
    h1, h2, h3 {
        margin-top: 10px;
        margin-bottom: 10px;
        font-size: 18px;
    }
    
    .dasb-class-tab {
        font-size: 11px;
        padding: 5px 8px;
    }
    
    .dasb-skill-tree-container {
        height: 400px;
        margin-bottom: 10px;
    }
    
    .dasb-build-panel {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .dasb-points-display,
    .dasb-section-heading {
        font-size: 14px;
    }
    
    .dasb-passives-list li {
        font-size: 12px;
        padding: 6px;
        margin-bottom: 6px;
    }
    
    .passive-header {
        font-size: 12px;
    }
    
    .passive-bonuses {
        margin-left: 5px;
        font-size: 11px;
    }
    
    .dasb-save-form {
        flex-direction: column;
    }
    
    .dasb-save-input {
        margin-bottom: 8px;
    }
    
    .dasb-qrcode-image {
        max-width: 150px;
    }
    
    .dasb-qrcode-toggle {
        font-size: 12px;
        padding: 6px 10px;
        width: 100%;
    }
    
    .dasb-qrcode-display {
        padding: 10px;
        width: 100%;
        max-width: 100%;
    }
    
    .dasb-share-link h3 {
        font-size: 16px;
    }
    
    .dasb-share-help {
        font-size: 11px;
    }
    
    .branch-title {
        font-size: 12px !important;
    }
}

/* Login Message */
.dasb-login-message {
    background-color: #333333;
    color: #ffd700;
    padding: 15px;
    border: 1px solid #b8860b;
    border-radius: 2px;
    margin-bottom: 20px;
    text-align: center;
}

/* Notification */
.dasb-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    z-index: 9999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-out;
    max-width: 80%;
    text-align: center;
}

.dasb-notification-error {
    background-color: rgba(180, 0, 0, 0.9);
    color: #ffffff;
    border-left: 5px solid #ff0000;
}

.dasb-notification-success {
    background-color: rgba(0, 120, 0, 0.9);
    color: #ffffff;
    border-left: 5px solid #00ff00;
}

.dasb-notification-info {
    background-color: rgba(0, 0, 120, 0.9);
    color: #ffffff;
    border-left: 5px solid #0088ff;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* Branch Titles */
.branch-title {
    position: absolute;
    color: #ffd700;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    width: 200px;
}

/* Node Tooltips */
.node-tooltip {
    position: absolute;
    background-color: rgba(25, 25, 25, 0.95);
    border: 1px solid #b8860b;
    border-radius: 4px;
    padding: 12px;
    color: #e0e0e0;
    min-width: 250px;
    max-width: 300px;
    z-index: 9999;
    box-shadow: 0 0 15px rgba(184, 134, 11, 0.3);
    pointer-events: none;
    overflow: visible;
}

/* Mobile tooltip styling */
@media (max-width: 768px) {
    .node-tooltip {
        min-width: auto;
        max-width: 95%;
        width: 280px;
        padding: 10px;
        left: 50% !important;
        transform: translateX(-50%);
        bottom: 20px !important;
        top: auto !important;
        font-size: 14px;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
        border-width: 2px;
    }
}

@media (max-width: 480px) {
    .node-tooltip {
        width: 90%;
        padding: 8px;
        font-size: 12px;
    }
}

.dasb-skill-tree-container {
    position: relative;
    overflow: visible !important;
}

.tooltip-title {
    color: #ffd700;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    border-bottom: 1px solid #b8860b;
    padding-bottom: 5px;
}

.tooltip-type {
    color: #b8860b;
    font-size: 14px;
    font-style: italic;
    margin-bottom: 10px;
}

.tooltip-level-group {
    margin-bottom: 12px;
}

.tooltip-level-title {
    color: #b8860b;
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 5px;
}

.tooltip-bonus {
    margin-bottom: 5px;
    font-size: 13px;
}

.bonus-type {
    color: #ffd700;
    font-weight: bold;
    margin-right: 5px;
}

.bonus-value {
    color: #cccccc;
}

.tooltip-cost, .tooltip-level {
    margin-top: 8px;
    font-size: 13px;
    color: #e0e0e0;
}

/* Share Link styles */
.dasb-share-link-container {
    margin-top: 30px;
}

.dasb-share-link {
    background-color: #222222;
    border: 1px solid #b8860b;
    border-radius: 2px;
    padding: 20px;
    color: #e0e0e0;
}

.dasb-share-link h3 {
    color: #ffd700;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.dasb-share-url-container {
    display: flex;
    margin-bottom: 10px;
}

.dasb-share-url {
    flex: 1;
    background-color: #333333;
    border: 1px solid #555555;
    border-radius: 2px 0 0 2px;
    color: #f0f0f0;
    padding: 10px;
    font-family: monospace;
    font-size: 14px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dasb-copy-button {
    background-color: #b8860b;
    color: #111111;
    border: none;
    border-radius: 0 2px 2px 0;
    padding: 0 15px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.dasb-copy-button:hover {
    background-color: #ffd700;
}

.dasb-share-help {
    color: #999999;
    font-size: 12px;
    margin-top: 10px;
    margin-bottom: 0;
}

/* QR Code Generator Styles */
.dasb-qrcode-container {
    margin: 15px 0;
}

.dasb-qrcode-toggle {
    background-color: #333333;
    color: #ffd700;
    border: 1px solid #b8860b;
    border-radius: 2px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
    text-transform: uppercase;
}

.dasb-qrcode-toggle:hover {
    background-color: #444444;
    box-shadow: 0 0 10px rgba(184, 134, 11, 0.5);
}

.dasb-qrcode-display {
    margin-top: 15px;
    padding: 15px;
    background-color: #333333;
    border: 1px solid #b8860b;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 250px;
}

.dasb-qrcode-instruction {
    margin-top: 10px;
    font-size: 12px;
    color: #cccccc;
    text-align: center;
}

.dasb-qrcode-image {
    border: 2px solid #b8860b;
    border-radius: 4px;
    max-width: 100%;
    height: auto;
}
