/* -------------------------------------------------------------------------------- */
/* Admin Menu Theme System - Base Styles */
/* -------------------------------------------------------------------------------- */

/* Base styles for grp-object-tools buttons */
/* Make all links in object-tools look like buttons */
ul.grp-object-tools li a {
    display: inline-block !important;
    padding: 5px 12px !important;
    padding-left: 35px !important;
    text-decoration: none !important;
    font-weight: normal !important;
    font-size: 12px !important;
    line-height: 16px !important;
    border-radius: 3px !important;
    -moz-border-radius: 3px !important;
    -webkit-border-radius: 3px !important;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
    position: relative !important;
    /* Increase default opacity from Grappelli's 0.5 for better visibility */
    opacity: 0.85 !important;
}

/* Icons for different link types in grp-object-tools */
/* Add icon - wyłączone dla domyślnego theme (ciemny) */
ul.grp-object-tools li a[href*="/add/"]::before {
    content: none;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

/* Export icon - używamy 📊 dla arkusza/Excel */
ul.grp-object-tools li a[href*="/export/"]::before {
    content: "📊";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

/* Crossref/document icon - używamy 📄 dla dokumentu */
ul.grp-object-tools li a[href*="/pobierz-z-crossref/"]::before {
    content: "📄";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

/* History icon - używamy 📜 dla historii zmian */
ul.grp-object-tools li a[href*="/history/"]::before {
    content: "📜";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

/* Author edit icon - używamy ✍️ dla edycji autorów */
ul.grp-object-tools li a[href*="_autor/"]::before {
    content: "✍️";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

/* Smooth color transitions for theme switching */
body,
#grp-navigation,
#grp-navigation ul#navigation-menu li a,
#grp-navigation ul#navigation-menu li ul li,
#grp-navigation ul#navigation-menu li ul li a,
#grp-context-navigation,
#grp-context-navigation ul li,
#grp-context-navigation ul li a,
.grp-button,
.grp-collapse,
.select2-container--default .select2-selection--single,
.select2-dropdown,
.select2-container--default .select2-search--dropdown .select2-search__field,
a,
.grp-info,
ul.grp-messagelist li.info {
    transition: background-color 0.2s ease-in-out,
                background 0.2s ease-in-out,
                color 0.2s ease-in-out,
                border-color 0.2s ease-in-out,
                border-left 0.2s ease-in-out,
                border-width 0.2s ease-in-out !important;
}

/* Preserve menu dropdown fade animation - don't override opacity/visibility */
#grp-navigation ul#navigation-menu li ul {
    transition: opacity 0.5s ease,
                visibility 0.5s ease,
                background-color 0.2s ease-in-out,
                background 0.2s ease-in-out,
                border-color 0.2s ease-in-out !important;
}

/* Default Theme (Original Dark) - No class needed */
/* Black background with blue accents - currently in use */
#grp-navigation {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Default menu-icon styles */
.menu-icon {
    background-color: #417690 !important;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
}

.menu-click-item:hover .menu-icon {
    background-color: #205067 !important;
}

/* Author page publication navigation buttons - reduced left padding (no icon) */
ul.grp-object-tools li a.autor-publikacje-nav {
    padding-left: 12px !important;
}
