//
// Variables
// --------------------------------------------------


// Global values
// --------------------------------------------------


// Grays
// -------------------------
@black:                 #000;
@grayDarker:            #222;
@grayDark:              #333;
@gray:                  #555;
@grayLight:             #999;
@grayLighter:           #eee;
@white:                 #fff;


// Accent colors
// -------------------------
@blue:                  #049cdb;
@blueDark:              #0064cd;
@green:                 #46a546;
@red:                   #9d261d;
@yellow:                #ffc40d;
@orange:                #f89406;
@pink:                  #c3325f;
@purple:                #7a43b6;


// Scaffolding
// -------------------------
@bodyBackground:        @var_BodyBackground; //@white;
@textColor:             @var_TextColor; //#444;


// Links
// -------------------------
@linkColor:             @var_LinkColor; //#08c;
@linkColorHover:        darken(@linkColor, 15%);


// Typography
// -------------------------
@sansFontFamily:        @var_SansFontFamily; //'Segoe UI', Tahoma, 'Helvetica Neue', Helvetica, Arial, 'sans-serif';
@serifFontFamily:       @var_SerifFontFamily; //Georgia, 'Times New Roman', Times, serif;
@monoFontFamily:        @var_MonoFontFamily; //Menlo, Monaco, Consolas, 'Courier New', monospace;

@baseFontSize:          @var_BaseFontSize; //14px;
@baseFontFamily:        @sansFontFamily;
@baseLineHeight:        @var_BaseLineHeight; //20px;
@altFontFamily:         @serifFontFamily;

@headingsFontFamily:    @var_HeadingsFontFamily; //'Segoe UI Semibold', 'Segoe UI', Tahoma, 'Helvetica Neue', Helvetica, Arial, 'sans-serif';
@headingsFontWeight:    @var_HeadingsFontWeight; //600 /* Semibold doesn't get bolder anyway */
@headingsColor:         @var_HeadingsColor; //inherit;



// Component sizing
// -------------------------
// Based on 14px font-size and 20px line-height

@fontSizeLarge:         @baseFontSize * 1.25; // ~18px
@fontSizeSmall:         @baseFontSize * 0.85; // ~12px
@fontSizeMini:          @baseFontSize * 0.75; // ~11px

@paddingDefault:		6px 12px; // 34px
@paddingLarge:          10px 16px; // 42px
@paddingSmall:          4px 10px;  // 30px
@paddingMini:           2px 6px;   // 26px

@baseBorderRadius:      3px;
@borderRadiusLarge:     5px;
@borderRadiusSmall:     2px;


// Tables
// -------------------------
@tableBackground:                   @var_TableBackground; //transparent; // overall background-color
@tableBackgroundAccent:             @var_TableBackgroundAccent; //#f9f9f9; // for striping
@tableBackgroundHover:              @var_TableBackgroundHover; //#f5f5f5; // for hover
@tableBorder:                       @var_TableBorder; //#ddd; // table and cell border


// Buttons
// -------------------------
@btnBackground:                     @var_BtnBackground;
@btnBackgroundHighlight:            darken(@btnBackground, 5%);
@btnBorder:                         #ccc; //#c6c6c6;

@btnPrimaryBackground:              @var_BtnPrimaryBackground;
@btnPrimaryBackgroundHighlight:     darken(@btnPrimaryBackground, 10%);

@btnInfoBackground:                 @var_BtnInfoBackground;
@btnInfoBackgroundHighlight:        darken(@btnInfoBackground, 10%);

@btnSuccessBackground:              @var_BtnSuccessBackground;
@btnSuccessBackgroundHighlight:     darken(@btnSuccessBackground, 10%);

@btnWarningBackground:              @var_BtnWarningBackground;
@btnWarningBackgroundHighlight:     darken(@btnWarningBackground, 10%);

@btnDangerBackground:               @var_BtnDangerBackground;
@btnDangerBackgroundHighlight:      darken(@btnDangerBackground, 10%);

@btnInverseBackground:              @var_BtnInverseBackground;
@btnInverseBackgroundHighlight:     darken(@btnInverseBackground, 10%);


// Forms
// -------------------------
@inputBackground:               @var_InputBackground;
@inputBorder:                   @var_InputBorder;
@inputBorderRadius:             @var_InputBorderRadius;
@inputDisabledBackground:       @var_InputDisabledBackground;
@formActionsBackground:         @var_FormActionsBackground;
@inputHeight:                   @baseLineHeight + 10px; // base line-height + 8px vertical padding + 2px top/bottom border

// Dropdowns
// -------------------------
@dropdownBackground:            @var_DropdownBackground;
@dropdownBorder:                @var_DropdownBorder;
@dropdownDividerTop:            @var_DropdownDividerTop;
@dropdownDividerBottom:         @var_DropdownDividerBottom;

@dropdownLinkColor:             @var_DropdownLinkColor;

@dropdownLinkColorHover:        @var_DropdownLinkColorHover;
@dropdownLinkColorActive:       @var_DropdownLinkColorActive; 
@dropdownLinkBackgroundActive:  @var_DropdownLinkBackgroundActive;
@dropdownLinkBackgroundHover:   @var_DropdownLinkBackgroundHover;


// COMPONENT VARIABLES
// --------------------------------------------------

// Z-index master list
// -------------------------
// Used for a bird's eye view of components dependent on the z-axis
// Try to avoid customizing these :)
@zindexDropdown:          1000;
@zindexPopover:           1010;
@zindexTooltip:           1030;
@zindexFixedNavbar:       1030;
@zindexModalBackdrop:     1040;
@zindexModal:             1050;


// Sprite icons path
// -------------------------
@iconSpritePath:          "../img/glyphicons-halflings.png";
@iconWhiteSpritePath:     "../img/glyphicons-halflings-white.png";


// Input placeholder text color
// -------------------------
@placeholderText:         @grayLight;


// Hr border color
// -------------------------
@hrBorder:                @grayLighter;


// Horizontal forms & lists
// -------------------------
@horizontalComponentOffset:       180px;


// Wells
// -------------------------
@wellBackground:                  @var_WellBackground;

/*
@wellBackground:                  #f5f5f5;
*/

// Navbar
// -------------------------
@navbarCollapseWidth:             979px;
@navbarCollapseDesktopWidth:      @navbarCollapseWidth + 1;

@navbarHeight:                    @var_NavbarHeight;
@navbarBackgroundHighlight:       @var_NavbarBackgroundHighlight;
@navbarBackground:                darken(@navbarBackgroundHighlight, 9%);
@navbarBorder:                    darken(@navbarBackground, 10%);

@navbarText:                      @var_NavbarText;
@navbarLinkColor:                 @var_NavbarLinkColor;
@navbarLinkColorHover:            @var_NavbarLinkColorHover;
@navbarLinkColorActive:           @var_NavbarLinkColorActive;
@navbarLinkBackgroundHover:       transparent;
@navbarLinkBackgroundActive:      transparent;

@navbarBrandColor:                @navbarLinkColor;

// Inverted navbar
@navbarInverseBackground:                @var_NavbarInverseBackground;
@navbarInverseBackgroundHighlight:       @var_NavbarInverseBackgroundHighlight;
@navbarInverseBorder:                    @var_NavbarInverseBorder;

@navbarInverseText:                      @var_NavbarInverseText;
@navbarInverseLinkColor:                 @var_NavbarInverseLinkColor;
@navbarInverseLinkColorHover:            @var_NavbarInverseLinkColorHover;
@navbarInverseLinkColorActive:           @var_NavbarInverseLinkColorActive;
@navbarInverseLinkBackgroundHover:       transparent;
@navbarInverseLinkBackgroundActive:      transparent;

@navbarInverseSearchBackground:          lighten(@navbarInverseBackground, 25%);
@navbarInverseSearchBackgroundFocus:     @white;
@navbarInverseSearchBorder:              @navbarInverseBackground;
@navbarInverseSearchPlaceholderColor:    #ccc;

@navbarInverseBrandColor:                @navbarInverseLinkColor;

/*
@navbarCollapseWidth:             979px;
@navbarCollapseDesktopWidth:      @navbarCollapseWidth + 1;

@navbarHeight:                    32px;
@navbarBackgroundHighlight:       #fff;
@navbarBackground:                darken(@navbarBackgroundHighlight, 9%);
@navbarBorder:                    darken(@navbarBackground, 10%);

@navbarText:                      #717171; // #777;
@navbarLinkColor:                 #717171; // #777;
@navbarLinkColorHover:            #1a1a1a; //@grayDark;
@navbarLinkColorActive:           @gray;
@navbarLinkBackgroundHover:       transparent;
@navbarLinkBackgroundActive:      transparent; //darken(@navbarBackground, 5%);

@navbarBrandColor:                @navbarLinkColor;

// Inverted navbar
@navbarInverseBackground:                #222;
@navbarInverseBackgroundHighlight:       #666;
@navbarInverseBorder:                    #555;

@navbarInverseText:                      #dadada; //@grayLight;
@navbarInverseLinkColor:                 #dadada; // @grayLight;
@navbarInverseLinkColorHover:            @white;
@navbarInverseLinkColorActive:           @navbarInverseLinkColorHover;
@navbarInverseLinkBackgroundHover:       transparent;
@navbarInverseLinkBackgroundActive:      transparent; // @navbarInverseBackground;

@navbarInverseSearchBackground:          lighten(@navbarInverseBackground, 25%);
@navbarInverseSearchBackgroundFocus:     @white;
@navbarInverseSearchBorder:              @navbarInverseBackground;
@navbarInverseSearchPlaceholderColor:    #ccc;

@navbarInverseBrandColor:                @navbarInverseLinkColor;
*/

// Pagination
// -------------------------
@paginationBackground:                @var_PaginationBackground;
@paginationBorder:                    @var_PaginationBorder;
@paginationActiveBackground:          @var_PaginationActiveBackground;

/*
@paginationBackground:                #fff;
@paginationBorder:                    #ddd;
@paginationActiveBackground:          #f5f5f5;
*/

// Hero unit
// -------------------------
@heroUnitBackground:              @grayLighter;
@heroUnitHeadingColor:            inherit;
@heroUnitLeadColor:               inherit;


// Form states and alerts
// -------------------------
@warningText:             #c09853; // #404040;
@warningBackground:       #fcf8e3; // #EEDC94
@warningBorder:           darken(spin(@warningBackground, -10), 3%); 

@errorText:               #b94a48; // @white; 
@errorBackground:         #f2dede; // #C43C35; 
@errorBorder:             darken(spin(@errorBackground, -10), 3%);

@successText:             #468847; // @white;
@successBackground:       #dff0d8; // #57a957; 
@successBorder:           darken(spin(@successBackground, -10), 3%);

@infoText:                #3a87ad; // @white;
@infoBackground:          #d9edf7; // #339BB9;
@infoBorder:              darken(spin(@infoBackground, -10), 3%);


// Tooltips and popovers
// -------------------------
@tooltipColor:            #f2fcfc;
@tooltipBackground:       #000;
@tooltipArrowWidth:       5px;
@tooltipArrowColor:       @tooltipBackground;

@popoverBackground:       #fff;
@popoverArrowWidth:       10px;
@popoverArrowColor:       #fff;
@popoverTitleBackground:  darken(@popoverBackground, 3%);

// Special enhancement for popovers
@popoverArrowOuterWidth:  @popoverArrowWidth + 1;
@popoverArrowOuterColor:  rgba(0,0,0,.25);



// GRID
// --------------------------------------------------


// Default 940px grid
// -------------------------
@gridColumns:             24;
@gridColumnWidth:         @var_GridColumnWidth;
@gridGutterWidth:         @var_GridGutterWidth;
@gridRowWidth:            (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));

// 1200px min
@gridColumnWidth1200:     @var_GridColumnWidth1200;
@gridGutterWidth1200:     @var_GridGutterWidth1200;
@gridRowWidth1200:        (@gridColumns * @gridColumnWidth1200) + (@gridGutterWidth1200 * (@gridColumns - 1));

// 768px-979px
@gridColumnWidth768:      42px;
@gridGutterWidth768:      20px;
@gridRowWidth768:         (@gridColumns * @gridColumnWidth768) + (@gridGutterWidth768 * (@gridColumns - 1));

/*
@gridColumns:             24; // 12
@gridColumnWidth:         20px; // 60px
@gridGutterWidth:         20px;
@gridRowWidth:            (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));

// 1200px min
@gridColumnWidth1200:     20px; // 70px;
@gridGutterWidth1200:     30px;
@gridRowWidth1200:        (@gridColumns * @gridColumnWidth1200) + (@gridGutterWidth1200 * (@gridColumns - 1));

// 768px-979px
@gridColumnWidth768:      42px;
@gridGutterWidth768:      20px;
@gridRowWidth768:         (@gridColumns * @gridColumnWidth768) + (@gridGutterWidth768 * (@gridColumns - 1));
*/

// Fluid grid
// -------------------------
@fluidGridColumnWidth:    percentage(@gridColumnWidth/@gridRowWidth);
@fluidGridGutterWidth:    percentage(@gridGutterWidth/@gridRowWidth);

// 1200px min
@fluidGridColumnWidth1200:     percentage(@gridColumnWidth1200/@gridRowWidth1200);
@fluidGridGutterWidth1200:     percentage(@gridGutterWidth1200/@gridRowWidth1200);

// 768px-979px
@fluidGridColumnWidth768:      percentage(@gridColumnWidth768/@gridRowWidth768);
@fluidGridGutterWidth768:      percentage(@gridGutterWidth768/@gridRowWidth768);
