/* Parent container using Flexbox */
.google-drive-browser {
    font-family: 'Raleway', sans-serif;
    font-size: 20px;
    color: var(--color-pri);
    width: 80%;
    outline: none;
}

  .gde-cool-button {
      display: inline-block; /* Ensure proper alignment */
      padding: 12px 10px; /* Increased padding for larger clickable area */
      font-size: 18px; /* Increase font size for better readability */
      font-weight: bold; /* Make text stand out */
      border: none; /* Remove default borders */
      border-radius: 8px; /* Slightly larger rounded corners */
      cursor: pointer; /* Pointer cursor on hover */
      transition: transform 0.2s ease, background-color 0.2s ease; /* Smooth animation */
      margin: 8px 0; /* Add margin to create space between buttons */
   
      text-align: center; /* Ensure the icon is centered */
  }


   .gde-cool-button:hover {
       transform: scale(1.1); /* Slightly enlarge the button */
   }

   /* Remove outline when focused */
   .gde-cool-button:focus {
       outline: none;
   }


.google-drive-browser button,
.google-drive-browser button:focus,
.google-drive-browser button:active {
    background: none !important;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.google-drive-browser .star-link i {
    margin-bottom: 15px;
    margin-top: 15px;
}


    .google-drive-browser .gde-drive-link {
        display: flex;
        justify-content: flex-end;
        margin: 5px 10px;
    }


.google-drive-browser button img {
    display: block; /* To ensure no extra padding or margin from inline styling */
    padding: 0;
    margin: 0;
}
.google-drive-browser .prc-root-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 16px;
    padding: 6px 4px;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-pri); /* primary-color text, not a filled pill */
    background: none; /* the pill background is gone */
    border: none;
    border-radius: 6px; /* just enough to shape the hover tint */
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .google-drive-browser .prc-root-name:hover {
        background-color: rgba(0, 0, 0, 0.04); /* soft tint, same as your rows */
    }

/* Folder title styling */
.google-drive-browser .current-folder-title {
    /*text-decoration: underline;*/
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 0;
    padding: 0;
}

/* Paragraph inside the container */
.google-drive-browser p {
    margin: 0 0 5px;
    padding: 0 !important;
    font-size: 30px;
    font-weight: 700;
}

/* Link styling */
.google-drive-browser a {
    margin-bottom: 0;
    text-decoration: none;
    color: var(--color-pri);
    display: flex;
    align-items: center;
}

/* File container styling */
.google-drive-browser .file-container {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    color: var(--color-pri);
    font-weight: 500; 
    align-items: start;
    margin-top: 0; 
    padding: 14px 10px; 
    border-bottom: 1px solid rgba(0, 0, 0, 0.08); 
    transition: background-color 0.2s ease;


   /* ORIGINAL:
       display: flex;
    flex-direction: column;
    cursor: pointer;
    color: var(--color-pri);
    font-weight: 600;
    align-items: start;
    margin-top: 20px;*/
}

    .google-drive-browser .file-container:hover {
        background-color: rgba(0, 0, 0, 0.04); /* row highlights on hover */
    }

/* File info and folder link */
.google-drive-browser .file-info, .folder-link {
    display: flex;
    align-items: center;
    font-weight: 600;
    border: none;
    outline: none;
    transition: transform 0.5s ease-in-out, opacity 0.3s ease;
}

/* Hover effect for file info and folder links */
.google-drive-browser .prc-root-name:hover {
    filter: brightness(105%);
    transform: scale(1.05);
}

.audio-player {
    max-width:80%;
    margin-left:5px;
}

/* File actions (hidden by default) */
.google-drive-browser .file-actions {
    display: none;
    margin-top: 5px;
    margin-left: 25px; 
    gap: 2px;
}

/* Show actions when the file container is clicked */
.google-drive-browser .file-container .file-actions {
    display: flex;
    gap:10px;
}

/* Loading Indicator Styles */
.google-drive-browser .loading-indicator {
    width: 60px;
    height: 60px;
    margin-top:20px;
    margin-right: 10px;
     position: relative;
    display: flex;
    align-items: center; /* Align vertically */
    justify-content: center; /* Align horizontally */
}

.google-drive-browser .loading-indicator::before {
    content: "";
    position: absolute;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--color-pri);
    border-radius: 50%;
    width: 100%;
    height: 100%;
    animation: prcgde_spin 2s linear infinite;
       
    box-sizing: border-box; /* Make sure the border doesn't affect the overall size */
}

.google-drive-browser .loading-indicator::after {
    content: "";
    position: absolute;
    width: 90%;
    height: 90%;
    background-image: var(--img-loading);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

   top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);
     display: flex; /* Use flex to help center */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
}

/* Keyframes for loading spinner */
@keyframes prcgde_spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.google-drive-browser .file-container .file-actions button
{
    border:none;
    outline:none;
    background-color:transparent;
}

/* Button styling */
.google-drive-browser .button-container button {
    background-color: var(--color-pri);
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    text-align: center;
    transition: transform 0.5s ease-in-out, opacity 0.3s ease;
}

.google-drive-browser .button-container button a {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
  
}

.google-drive-browser .button-container button:hover {
    filter: brightness(125%);
}


.google-drive-browser .edit-link i {
    display:flex;
    align-self: center; /* Align it vertically in the same line */
    color:#cdb450!important;
    transition: transform 0.5s ease-in-out, opacity 0.3s ease;
    }
    
    .google-drive-browser .edit-link i:hover {
   transform: scale(1.1);
   cursor:pointer;
    }

.google-drive-browser .gdeprc-input-text
{
    padding:10px;
    border-radius:10px;
    border:1px solid var(--color-pri)
}


/* Play, download, and other action buttons */
.google-drive-browser .play-button,
.google-drive-browser .download-button,
.google-drive-browser .view-button,
.google-drive-browser .star-link,
.google-drive-browser .showImg-button {
    width: 30px;
    max-height: 40px;
    margin-left: 10px;
    margin-right:20px;
    color: var(--color-pri);
    border: none;
    background: transparent;
    cursor: pointer;
    transition: transform 0.5s ease-in-out, opacity 0.3s ease;
}

    .google-drive-browser .play-button:hover,
    .google-drive-browser .download-button:hover,
    .google-drive-browser .view-buttom:hover,
    .google-drive-browser .showImg-button:hover {
        filter: brightness(125%);
        transform: scale(1.1);
        opacity: 1.0;
    }

    .google-drive-browser .download-button {
        font-size:1em;
        margin-right:20px;
    }


    .google-drive-browser .gdeprc_button {
        color: var(--color-pri) !important;
        background: none;
        border: none !important;
        font-size: 12px;
        cursor: pointer;
        opacity: 0.8;
        transition: transform 0.3s ease-in-out; /* Smooth transition */
    }    

.google-drive-browser .gdeprc_button i {
    color: var(--color-pri)!important;
    background: none;
    border: none!important;
    font-size: 12px;
    cursor: pointer;
    opacity: 0.8;
    transition: transform 0.3s ease-in-out; /* Smooth transition */
}

        .google-drive-browser .gdeprc_button_filled {
            color: var(--color-pri) !important;
            background-color: #EEEEEE!important;
            outline:none;
            padding:5px 10px;
            border: none !important;
            border-radius:5%;
            font-size: 12px;
            cursor: pointer;
            opacity: 0.8;
            transition: transform 0.3s ease-in-out; /* Smooth transition */
        }

.google-drive-browser .gdeprc_button:hover,
.google-drive-browser .gdeprc_button_filled:hover,
.google-drive-browser .close-button:hover {
    transform: scale(1.05);
    opacity: 1.0;
}

.google-drive-browser .gdeprc-input-text:focus,
.google-drive-browser .gdeprc_button:focus, 
.google-drive-browser .play-button:focus,  
.google-drive-browser .gdeprc_button:active, 
.google-drive-browser .play-button:active {
    outline: none; /* Removes the default outline (which can appear as a border) */
    border: none;  /* Ensures no border is added */
}

.google-drive-browser #uploadFormX, .Xgdeprc-form-container
{
    display:none;
    border:2px solid var(--color-pri);
    border-radius:10px;
    -webkit-border-radius: 10px; /* Add prefix for Safari compatibility */
    padding:20px 20px;
    position: relative
}


/* Close button styling */
.google-drive-browser .Xclose-button {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: red;
    opacity: 0.8;
    transition: transform 0.3s ease-in-out;
}

.google-drive-browser .file-info img {
    margin-right: 10px; /* Space between icon and file name */
}

.google-drive-browser .media-container {
    margin-top: 20px;
}


/*
/* .google-drive-browser .file-container span .file-name {
 /*       display: flex; /* Align the file name inline */
/*        align-items: center; 
/*        margin-right:10px;
//        }
        
//        .google-drive-browser .file-container .file-name img {
//    margin-right: 5px; /* Add space between the image and text */
/*    margin-top:20px;
//}
*/


.mbrupdr-download-only-note {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8em;
    opacity: 0.7;
    cursor: help;
    margin-top: 10px;
}

.google-drive-browser .gde-video-player {
    max-width: 80%;
    max-height: 70vh; /* this is what was missing — caps the height */
    height: auto; /* keep the aspect ratio, just fit inside the limits */
    margin-left: 5px;
}

.mbrupdr-icon {
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}


/* "Back to parent" navigation control */
.google-drive-browser .mbrupdr-back-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box; /* so padding doesn't push it past 100% */
    padding: 14px 16px; /* big, finger-friendly tap target */
    margin: 0 0 16px;
    font-size: 20px; /* readable, not shouting */
    font-weight: 600;
    color: var(--color-pri);
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.04); /* faint, so it reads as tappable */
    border-radius: 10px;
    transition: background-color 0.2s ease; /* gentle tint, no zoom */
}

    .google-drive-browser .mbrupdr-back-link:hover,
    .google-drive-browser .mbrupdr-back-link:focus {
        background-color: rgba(0, 0, 0, 0.08);
        outline: none;
    }

    .google-drive-browser .mbrupdr-back-link svg {
        width: 22px;
        height: 22px;
        flex-shrink: 0; /* keep the arrow from squishing */
    }

.google-drive-browser .folder-link svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}


.google-drive-browser .file-container .file-actions {
    display: flex;
    flex-wrap: wrap; /* let the wide audio/video drop to its own line */
    justify-content: start; /* center the icon buttons (and the wrapped player) */
    align-items: center; /* THE fix — vertically centers items in each row */
    gap: 12px;
   
    margin-top: 15px;
    margin-left: 0; /* was -15px — that was shoving the row left into the clip */
}

.google-drive-browser textarea.gdeprc-input-text {
    field-sizing: content; /* grow to fit what's typed */
    min-height: 1.6em; /* starting height */
    max-height: 10em; /* cap, then it scrolls */
    overflow-y: auto;
    resize: none; /* hide the manual drag handle */
    line-height: 1.4;
}


/* ==============    SMALL MEDIA  ================ */
/* Small screen adjustments */
@media (min-device-width:320px) and (max-device-width:768px) /*  (max-width: 600px) */
{
    .google-drive-browser {
        text-align: center;
        padding: 0 3px;
        width: 100%;
        font-size: 24px;
    }


        .google-drive-browser .file-container {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            margin-top: 5px;
            width: 100%;
        }



            .google-drive-browser .file-container span {
                flex-direction: row; /* Ensure children are in a row */
                display: flex;
                justify-content: flex-start;
                font-weight: 500;
                font-size: 0.9em;
                align-items: center;
                width: auto;
                flex-wrap: nowrap; /* Prevent wrapping */
               
            }



        .google-drive-browser .loading-indicator-wrapper {
            display: flex;
            justify-content: center; /* Center horizontally */
            width: 100%;
        }


        .google-drive-browser .file-container span .file-name {
            display: flex; /* Align the file name inline */
            align-items: center;
            margin-right: 10px;
        }

        .google-drive-browser .file-container .file-name img {
            margin-right: 5px; /* Add space between the image and text */
        }

    
        .google-drive-browser .file-container .file-controls {
            display: flex;
            align-items: center;
            justify-content: center;
            align-self: center;
            width: 100%;
        }

        .google-drive-browser .file-container .folder-link, .file-container .file-info {
            display: flex;
            align-items: center;
            align-self: flex-start; /* Align the folder link to the left within the flex container */
            width: 100%; /* Optionally, make the folder link take up the full width */
            text-align: left; /* Ensure the text inside the folder link is aligned left */
            transition: opacity 0.3s ease;
            margin-right: 0 !important;
            margin-left: 0 !important;
            margin-bottom: 20px;
            transition: transform 0.5s ease-in-out; /* Smooth transition */
        }

        .google-drive-browser .file-container .file-actions {
            display: flex;
            flex-wrap: wrap; /* let the wide audio/video drop to its own line */
            justify-content: center; /* center the icon buttons (and the wrapped player) */
            align-items: center; /* THE fix — vertically centers items in each row */
            gap: 12px;
            width: 100%; /* fill the row so centering is true & audio can go full-width */
            margin-top: 15px;
            margin-left: 0; /* was -15px — that was shoving the row left into the clip */
        }

        .google-drive-browser .play-button, .view-button, .showImg-button {
            width: 40px;
            max-height: 56px;
        }

        .google-drive-browser .edit-link i {
            margin-bottom: 20px;
        }


        .google-drive-browser .star-link i {
            margin-bottom: 30px;
            margin-top: 0px;
        }

        .google-drive-browser .download-button svg {
            min-width: 60px !important;
            max-height: 60px !important;
             margin-right:40px;
        }

        .google-drive-browser .download-button {
                     margin-right: 40px;
        }
        
        .google-drive-browser .delete-file-button  {
            min-width: 50px !important;
           /* max-height: 50px !important;*/
           
        }

        .google-drive-browser .file-container .file-actions .audio-player,
        .google-drive-browser .file-container .file-actions .gde-video-player {
            order: 2; /* send it below the icon buttons */
            flex-basis: 100%; /* claim a full row of its own */
            max-width: 100%; /* override the 80% so it isn't cut off */
            margin-left: 0;
        }

}
