/* INDIVIDUAL ICON STYLING */

.rename_collection svg {
    width: 20px;
    height: 20px;
}

.delete_collection svg {
    width: 20px;
    height: 20px;
    filter: invert(1);
}

[data-theme="light"] .delete_collection svg {
    filter: invert(0);
}

.copy_collection_link svg {
    max-width: 16px;
    max-height: 16px;
    filter: invert(1);
}

@media (max-width: 768px) {
    .copy_collection_link svg {
        max-width: 14px;
        max-height: 14px;
    }
}

[data-theme="light"] .copy_collection_link svg {
    filter: invert(0);
}

.download_collection svg {
    width: 20px;
    height: 20px;
}

/* REST OF STYLING */

.album_actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}



.edit_code_block {
    display: flex;
    flex-direction: row;
    margin-left: 15px;
    flex-wrap: nowrap;
}

.album_title_row .edit_code_block {
    margin-left: auto;
    align-items: center;
}

.edit_code_label, .reference_label {
    font-size: 14px;
    color: var(--text_opac_color);
    margin-right: 10px;
    white-space: nowrap;
}

.edit_code_display, .edit_code_input, .reference_display {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.edit_code_value, .reference_value {

    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: 140px;
    overflow: hidden;

    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 4px;

    padding-top: 2px; 
    padding-bottom: 2px; 
    padding-left: 8px; 
    padding-right: 2px; 
    
}

.code_text {
    font-family: monospace;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: -1px;
    user-select: all;
    max-width: 150px;
    display: block;
    opacity: 0.5;
}

.edit_code_form {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    padding: 2px;
    width: 180px;
}

.edit_code_form input {
    background: transparent;
    border: none;
    outline: none;
    padding: 5px 10px;
    color: #fff;
    font-size: 14px;
    font-family: monospace;
    width: 100%;
}

.edit_code_form input:focus {
    outline: none;
}

.submit_edit_code {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.submit_edit_code:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.submit_edit_code img {
    width: 16px;
    height: 16px;
    filter: invert(1);
    opacity: 0.7;
    transition: opacity 0.2s;
}

.submit_edit_code:hover img {
    opacity: 1;
}

.submit_edit_code.success {
    background-color: rgba(40, 167, 69, 0.2);
}

.submit_edit_code.success img {
    filter: invert(83%) sepia(34%) saturate(464%) hue-rotate(86deg) brightness(89%) contrast(85%);
}

.submit_edit_code.error {
    background-color: rgba(220, 53, 69, 0.2);
}

.submit_edit_code.error img {
    filter: invert(37%) sepia(61%) saturate(2878%) hue-rotate(328deg) brightness(87%) contrast(98%);
}

.copy_edit_code img, .copy_reference img {
    filter: brightness(0) invert(1);
}

[data-theme="light"] .copy_edit_code img, [data-theme="light"] .copy_reference img {
    filter: brightness(0) invert(0);
}

.copy_edit_code, .copy_reference {
    margin-left: 5px;
}

.copy_button, .copy_edit_code, .copy_reference, .copy-link {
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s;
}

[data-theme="light"] .copy_button, [data-theme="light"] .copy_edit_code,[data-theme="light"] .copy_reference,[data-theme="light"] .copy-link {
    background-color: rgba(0, 0, 0, 0.1);
}

.copy_button:hover, .copy_edit_code:hover, .copy_reference:hover, .copy-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.copy_button img, .copy_edit_code img, .copy_reference img, .copy-link img {
    width: 14px;
    height: 14px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.copy_button:hover img, .copy_edit_code:hover img, .copy_reference:hover img, .copy-link:hover img {
    opacity: 1;
}

.copy_button.copied, .copy_edit_code.copied, .copy_reference.copied, .copy-link.copied {
    background-color: rgba(40, 167, 69, 0.2);
}

.copy_button.copied img, .copy_edit_code.copied img, .copy_reference.copied img, .copy-link.copied img {
    filter: invert(83%) sepia(34%) saturate(464%) hue-rotate(86deg) brightness(89%) contrast(85%);
}

.album_action_btn {
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: transparent;
}

.album_action_btn_send {
    border: none;
    padding: 0.5px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    backdrop-filter: blur(4px);
    text-decoration: none;
}

.album_action_btn:hover {
    transform: translateY(-3px);    
}

.album_action_btn img {
    width: 18px;
    height: 18px;
    filter: invert(1);
    object-fit: contain;
}

.album_action_btn_send img {
    width: 18px;
    height: 18px;
    filter: invert(1);
    object-fit: contain;
}

.album_action_btn.copied {
    background-color: rgba(40, 167, 69, 0.2);
}

.code-access-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
}

.reference_block {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-left: 20px;
}

@media (max-width: 768px) {
    .code-access-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

.save_status, .notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 8px 16px;
    border-radius: 4px;
    margin-right: auto;
    font-size: 14px;
    transition: all 0.3s ease;
}

.save_status.success, .notification.success {
    background-color: rgba(85, 189, 118, 0.2);
    color: #55bd76;
}

.save_status.error, .notification.error {
    background-color: rgba(255, 74, 74, 0.2);
    color: #ff4a4a;
}

/* Modal styles moved to shared/popupactions.css */

@media (max-width: 768px) {
    .album_title_row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .album_title_row h1 {
        margin: 0;
        font-size: 20px;
    }
    
    .edit_code_block {
        margin-left: 0;
        margin-right: 0px;
        order: 2;
    }
    
    .album_actions {
        order: 3;
        margin-top: 0;
        gap: 4px;
        
    }
    
    .album_action_btn {
        width: 32px;
        height: 32px;
    }
    
    .album_action_btn img {
        width: 18px;
        height: 18px;
    }
}

.header-card {
    background-color: #1c1b1b;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-card h1 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: var(--text_color);
}

.title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 15px;
}

.title-row h1 {
    margin: 0;
    flex-shrink: 0;
}

.header_controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    flex-wrap: nowrap;
    flex: 1;
    justify-content: flex-end;
    margin-bottom: 6px;
}

.bottom-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin-top: -10px;
    margin-bottom: -10px;
}

.bottom-row-right {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    flex-wrap: nowrap;
    width: 50%;
}

.metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
    width: 50%;
    padding: 2px;
}

.metadata > div {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.metadata .item {
    margin-right: 20px;
}

.metadata .item:last-child {
    margin-right: 0;
}

.locked-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    filter: invert(57%) sepia(7%) saturate(15%) hue-rotate(343deg) brightness(91%) contrast(89%);
    opacity: 0.8;
}

.album_details {

    padding-top: 21px;
    padding-right: 25px;
    padding-bottom: 26px;
    padding-left: 25px;

    margin-top: 15px;
    margin-bottom: 15px;
    border-radius: 15px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.album_title_row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0px;
    margin-bottom: 0px;
}

.album_title_row h1 {
    margin: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    margin-bottom: -6px;
}

.bottom_row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    flex-wrap: nowrap;
    margin-top: 0px;
}

.bottom_row_right {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    flex-wrap: nowrap;
    width: 50%;
    margin-top: 2px;
}

.album_metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: var(--text_opac_color);
    width: 50%;
    padding: 2px;
}

.album_date, .album_item_count, .album_user, .album_size {
    white-space: nowrap;
    line-height: 1;
}

.album_date {
    position: relative;
}

.album_size {
    position: relative;
}

.item_action_btn {
    background-color: rgb(0, 0, 0, 0.5)
}

@media (max-width: 1024px) {

    .header_controls {
        flex-wrap: wrap;
        justify-content: flex-end;
        margin-top: 10px;
    }

    .bottom-row, .bottom_row {
        flex-direction: column;
    }

    .album_metadata, .bottom_row_right {
        width: 100%;
    }

    .album_details {

        padding-top: 16px;
        padding-right: 20px;
        padding-bottom: 21px;
        padding-left: 20px;
        
    }
}

@media (max-width: 768px) {

    .album_details {

        padding-top: 19px;
        padding-right: 20px;
        padding-bottom: 19px;
        padding-left: 20px;

        margin-top: 60px;

    }

    .header_controls {

        position: absolute;
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: end;

        margin-left: -20px;
        margin-top: -126px;
        margin-right: 0;

        gap: 8px;
    
    }

    .album_actions {

        display: flex;
        align-items: center;
        justify-content: center;
        order: 2;

        background-color: var(--block_background);
        border-radius: 10px;
        padding: 8px;
        
        gap: 8px;

        margin-top: 5px;
        margin-bottom: 5px;

        
    }
    
    .header_controls .album_actions {
        margin-left: auto;
    }
    
    .metadata, .album_metadata {
        width: 100%;
        justify-content: flex-start;
    }

    .album_metadata {
        flex-wrap: wrap;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .album_metadata > * {
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }
    
    .edit_code_label, .reference_label {
        font-size: 13px;
    }
    
    .code_text {
        max-width: 100px;
    }
    
    .bottom_row_right {
        width: 100%;
        flex-direction: row;
        gap: 10px;
        margin-top: -5px;
    }

    .bottom_row {
        margin-top: 12px;
    }
    
    .edit_code_block {
        width: 100%;
    }
    
    .reference_block {
        margin-left: 0;
    }
} 