/*!
 Project   : Total WordPress Theme
 Purpose   : WordPress Customizer CSS
 Author    : WPExplorer
 Theme URI : http://www.wpexplorer.com
 */

@import "../load-helpers";

// Admin colors
$admin_colors :	( midnight, #dd382d ),
				( fresh, #1a8dba ),
				( light, #777 ),
				( blue, #096484 ),
				( coffee, #59524c ),
				( ectoplasm, #523f6d ),
				( ocean, #6c976f ),
				( sunrise, #dd823b );

.wpex-theme-panel .notice {
    display: none !important
}

.wpex-theme-panel {

    h1 {
        padding-top: 20px;
        font-size: 2.1em;
    }

    /*&.wpex-main-panel h1 {
        font-weight: bold;
    }*/

    .about-text {
        font-size: 1.15em;
        margin-bottom: 20px;
    }

    .nav-tab-wrapper {
        margin-bottom: 20px;
    }

}

.wpex-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 140px;
    height: 160px;
    color: #fff;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
    margin: 5px 0 0;
    display: block;
    text-rendering: optimizeLegibility;
    -webkit-box-shadow: 0 1px 3px rgba(0,0,0,.2);
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
    background: #5c6bd0;
    background: -webkit-linear-gradient(top right, #6f27b5 -10%, #5c6bd0);
    background: linear-gradient(to bottom left, #6f27b5 -10%, #5c6bd0);

    body.rtl & {
        right: auto;
        left: 0;
    }

    table {
        height: 100%;
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }

    .fa {
        font-size: 74px;
    }

    .wpex-spacer {
        width: 100%;
        height: 15px;
    }

    .wpex-version {
        background: #1daf99;
        display: inline-block;
        padding: 0 4px;
        border-radius: 4px;
        margin-left: 2px;
        height: 14px;
        line-height: 14px;
        font-size: 11px;
        position: relative;
    }

}

@media only screen and (max-width: 500px) {
    .wpex-badge {
        position: relative;
        margin-bottom: 1.5em;
        width: 100%;
    }
}

.wpex-clr:after {
    content: "";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
    zoom: 1;
}

.wpex-theme-panel .about-wrap .nav-tab {
    font-size: 14px;
}

.wpex-filterby-hide {
    display: none;
}

.wpex-sort-hide {
    display: none;
}

.wpex-theme-panel .nav-tab-wrapper .fa {
    margin-right: 10px;

    body.rtl & {
        margin-right: 0;
        margin-left: 10px;;
    }

}

.wpex-theme-panel .nav-tab.wpex-theme-license {
    .fa-warning,
    .fa-exclamation-circle {
        color: #e74c3c;
    }
    .fa-certificate {
        color: #1daf99;
    }
}

// Updated panel
.wpex-theme-panel-updated {
    display: none;
    background: #fff;
    border-left: 4px solid #f0821e;
    margin: 15px 0 5px;
    padding: 1px 12px;
    @include box-shadow( 0 1px 1px 0 rgba(0,0,0,.1) );
}


// Right side links
.wpex-theme-panel .manage-right {
    clear: both;
    margin: 0;
    padding: 0;
    float: right;
    width: 35%;
}

.wpex-theme-panel .manage-right {
    font-size: 12px;

    .wpex-system-status {
        font-size: 1em;
        p {
            margin: 0;
            font-weight: 600;
            line-height: 20px;
            padding-bottom: 10px;
            margin-bottom: 10px;
            border-bottom: 1px solid #eee;
            position: relative;
            &.last {
                margin: 0;
                padding: 0;
                border: 0;
            }
            span.wpex-val {
                position: absolute;
                right: 0;
                top: 50%;
                margin-top: -15px;
                height: 20px;
                font-size: 12px;
                display: inline-block;
                float: right;
                font-weight: normal;
                color: #fff;
                padding: 0 6px;
                border-radius: 4px;
                &.wpex-bad {
                    background: #e74c3c;
                }
                &.wpex-good {
                    background: #1daf99;
                }
            }
            span.wpex-rec {
                display: block;
                font-size: 0.85em;
                opacity: 0.7;
            }
        }
    }

}

.wpex-theme-panel .manage-right h4 {
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-top: 10px;
}

.wpex-theme-panel .manage-right input[type="text"] {
    width: 100%;
    padding: 7px;
    font-weight: 600;
}

.wpex-filter-active button {
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
}

.wpex-theme-panel-sort {
    a {
        font-weight: 600;
        text-decoration: none;
        text-transform: none;
        letter-spacing: 0;
    }
}

.wpex-theme-panel-sort a.wpex-active-category {
    padding: 1px 5px;
    border-radius: 2px;
    margin-left: -5px;
    background: #0D72B2;
}


// Left side options
.wpex-theme-panel .manage-left {
    float: left;
    margin: 0;
    padding: 0;
    width: 63%;
}

.wpex-theme-panel .manage-left table {
    margin-top: 15px;
}

.wpex-theme-panel .manage-left td,
.wpex-theme-panel .manage-left th {
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1)
}

.wpex-theme-panel .manage-left td {
    padding: 10px 10px 8px 10px;
    line-height: 25px;
}

.wpex-theme-panel .manage-left td .dashicons {
    margin-right: 10px;

    body.rtl & {
        margin-right: 0;
        margin-left: 10px;;
    }
    
}

.wpex-module-description {
    line-height: 1.5;
    padding-left: 30px;
}

.wpex-module.wpex-hidden {
    display: none !important
}

tr.wpex-disabled {
	@include opacity( 0.5 );
}

tr.wpex-disabled:hover {
	@include opacity( 0.65 );
}

.wpex-theme-panel a:focus {
    @include box-shadow( none );
}

.wpex-module a {
    &:hover span {
    	text-decoration: underline;
	}
}

// Loop through admin colors
@each $name, $hex in $admin_colors {

	.admin-color-#{$name} .wpex-module a,
	.admin-color-#{$name} .wpex-theme-panel-sort a {
		color: $hex;
	}
	
	.admin-color-#{$name} .wpex-theme-panel-sort a.wpex-active-category {
		background: $hex;
		color: #fff;
	}

}

.wpex-purchase-code-heading > span {
    display: inline-block;
    position: relative;
    top: -2px;
    margin-left: 5px;
}

.wpex-purchase-code-heading .dashicons-no {
    color: red;
}

input.wpex-invalid {
    border-color: red !important;
}

.wpex-purchase-code-heading .dashicons-yes {
    color: #8BC53F;
}

input.wpex-valid {
    border-color: #8BC53F !important
}

@media only screen and (max-width: 800px) { 
	.wpex-theme-panel .manage-right,
	.wpex-theme-panel .manage-left {
	    width: 100%;
	    float: none;
	}
}

.wpex-boxed-shadow {
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    p:last-child {
        margin: 0;
    }
}

.wpex-customizer-editor-table th,
.wpex-customizer-editor-table td {
    padding: 7px 0 !important;
}


// Product license page
.wpex-theme-license-page {
    max-width: 760px;
    h1 {
        margin-bottom: 20px;
    }
}
.wpex-theme-license-box {
    font-size: 13px;
    line-height: 2.1em;
    h2 {
        margin: 0 0 15px;
        font-size: 21px;
    }
    .wpex-top-note {
        font-size: 14px;
        margin-bottom: 20px;
    }
    input[type="text"] {
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }
    p.submit {
        margin-top: 15px;
    }
    .wpex-spinner {
        opacity: 0;
        display: inline-block;
        margin-left: 12px;
        position: relative;
        top: 7px;
        vertical-align: center;
    }
}

.wpex-admin-ajax-notice {
    margin-bottom: 20px;
    display: none;
    &.updated {
        display: block;
    }
}

#wpex-help-toggle {
    text-decoration: none !important;
}

.wpex-help-notice {
    display: none;
    p {
        font-size: 1em;
    }
}

// Admin fields
.wpex-media-live-preview {
    clear: both;
    margin-top: 10px;
    max-width: 300px;
}

.wpex-media-live-preview img {
    max-width: 100%;
}


// JS tabs
.wpex-panel-js-tabs {
    margin-top: 20px;
}
.wpex-tab-content {
    display: none;
}


// Custom login page
.wpex-custom-login-admin-tabs {
    min-height: 35px;

}
.wpex-custom-login-admin-tabs a.nav-tab {
    outline: 0;
    box-shadow: none;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
}

.wpex-custom-admin-login-table tr {
    display: none;
}

.wpex-custom-admin-login-table tr.wpex-custom-admin-screen-main-section {
    display: block;
}


// Custom Actions
.wpex-custom-actions-admin-wrap #poststuff h2 {
    font-size: 16px;
    margin: 10px 0;
    padding: 0;
    color: #000;
    font-weight: bold;
}

.wpex-custom-actions-admin-wrap #poststuff h3 {
    color: #555;
}

.wpex-custom-actions-admin-wrap #poststuff h3.active {
    color: #0095dd;
}

.wpex-custom-actions textarea {
    margin: 12px 0 3px;
    background: #f5f5f5;
    color: #000;
    padding: 15px;
    font-family: 'Verdana';
}

.wpex-custom-actions p.submit {
    margin: 0 !important;
    padding: 0 !important;
}

.wpex-custom-actions label {
    color: #555;
    font-weight: bold;
    margin: 0;
    padding: 0;
    min-width: 60px;
    display: inline-block;
}

.wpex-custom-actions .wpex-priority {
    background: #f5f5f5;
    color: #000;
    width: 60px;
}

.wpex-custom-css-panel-wrap .CodeMirror {
    height: auto;
    &, & > * {
        min-height: 300px;
    }
}

#wpex_custom_css {
    width: 100%;
}
