

/**************************************************************
 *
 * This file contains custom classes and styles
  * v01.2
 *
 **************************************************************/

#main-footer{
    background: none repeat scroll 0% 0% #EEE;
    border-top: 1px solid #E5E5E5;
    border-bottom: 1px solid #000;
    padding-top: 1em;
    padding-bottom: 1em;
}

#main{
    background-color: #FFF;
}


/*
 * Images in links are vertically aligned
 */

a img{
    vertical-align: middle;
}

/*
 * "invisible" elements, simply hidden (they still take all the space)
 */
.invisible{
    display: none;
}

.align-right
{
    text-align: right;
}

.sortable-settings
{
    border: 1px solid black;
}

.sortable-settings-drag
{
    padding-left: 1em;
    padding-right: 1em;
    background-color: #babdb6;
    border-bottom:1px solid black;
}

/*
 * Set a more appropriate cursor to the drag'n'drop handle on the
 * workout view
 */
.dragndrop-handle{
    cursor:move
}

/**************************************************************
 * Mouse hover options
 **************************************************************/
/*
 * Hide the edit options (edit, delete) on tables, only show them when the mouse is over the row
 */

tr:hover .editoptions, tbody tr:hover td .editoptions, ul:hover .editoptions
{
    visibility: visible;
}


/*
 * Deactivate the default background color on hover
 */
.editoptions a:hover,
.ui-tabs-nav a:hover,
.ui-tabs-nav a:focus,
.ajax-exercise-select a:hover,
.no-hover a:hover,
.no-hover:hover {
    background-color: transparent;
}


/*
 * Images inside a link are set to greyscale till mouseover
 */
/*
a img
{
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    -ms-filter: grayscale(100%);
    -o-filter: grayscale(100%);
}

a:hover img
{
    filter: grayscale(0%);
    -webkit-filter: grayscale(0%);
    -moz-filter: grayscale(0%);
    -ms-filter: grayscale(0%);
    -o-filter: grayscale(0%);
}
*/

/*
 * Set the sizes for the background where the muscles are shown on the exercise view page
 */
div.muscle-background
{
    width: 180px;
    height: 276px;
    background-size: 150px;
    background-repeat: no-repeat;
}

/*
 * Set an additional padding to the generated DIV on the edit set page
 */
#exercise-search-log{
    padding-left: 1em;
}


/**************************************************************
 * Workout log
 **************************************************************/
/*
 * Workout log entry page needs the horizontal space
 */
.workout-log-table .narrow-input {
    width: 7em;
}


/**************************************************************
 * Header
 **************************************************************/

/*
 * Add a shadow to the application name
 */
header h1{
    text-shadow: 2px 3px 3px #292929;
    font-family: "VazirmatnFD", Arial, Helvetica, sans-serif;
    font-weight: 300;
}

header a,
header a:hover,
header a:focus{
    color:white;
    font-size:90%;
}

header span.name{
    font-family: "VazirmatnFD", Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size:   200%;
    color:       white;
}


header span.regular{
    text-shadow: 2px 3px 3px #292929;
    font-family: "VazirmatnFD", Arial, Helvetica, sans-serif;
    font-weight: 300;
    font-size:   350%;
    color:       white;
}

/*
 * Make more space for the page title
 */
#page-title{
    margin-top: 0.5em;
}

#content-wrapper{
    padding-top: 0.8em;
}


/*
 * Links in warning boxes get a different style, the default blue doesn't match
 * well with orange
 */
div.success a, div.success a:hover, div.success a:active,
div.warning a, div.warning a:hover, div.warning a:active,
div.info a, div.info a:hover, div.info a:active{
    color: black;
    text-decoration: underline;
    background-color: transparent;
}


/**************************************************************
 * Autocompleter
 **************************************************************/
/*
 * Category heading for the ajax autocompleter
 */
.ui-autocomplete-category {
    margin:0;
    text-align: center;
    zoom: 1;
    width: 100%;
    font-weight: bold;
    background-color: #D3D7CF;
    border-bottom: 1px solid #888a85;
}

/*
 * Give the result list from the autocompleter a maximum size
 */
.ui-autocomplete {
    max-height: 500px;
    max-width: 500px;
    overflow-y: auto;
    overflow-x: hidden; /* prevent horizontal scrollbar */
}

/*
 * Give odd child's a different background colour (thanks CSS3!)
 */
.ui-autocomplete li.ui-menu-item:nth-child(odd)
{
    background: #eeeeec;
}


/**************************************************************
 * extra-bold fonts
 **************************************************************/

.extra-bold{
    font-family: "VazirmatnFD", Arial, Helvetica, sans-serif;
    font-weight: 300;
}

/**************************************************************
 * Set edit window
 **************************************************************/
#slider{
    width: 91%;
    float: right;
    margin-right: 1em;
}


/**************************************************************
 * Carousel on the feature page
 **************************************************************/
#feature-carousel .carousel-caption
{
    background-color: rgba(0, 0, 0, 0.75);
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
}

/**************************************************************
 * 'Your ...' shoutouts on the feature page
 **************************************************************/
#shoutout h2:first-child {
    margin-top: 0;
}

/**************************************************************
 * Voice assistant button and text
 **************************************************************/
#voiceAssistantBtn {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1060;
    width: 50px !important;
    height: 50px !important;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: background-color 0.3s ease;
    overflow: hidden; /* مهم */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* وضعیت گفتار کنار دکمه */
.voice-status-text {
    position: fixed;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1060; /* افزایش z-index */
    background: rgba(255,255,255,0.95);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
