/* DEFAULTS
----------------------------------------------------------*/

body   
{
    background: #f5f7fa;
    font-size: 0.95em;
    font-family: "Segoe UI", "Helvetica Neue", Arial, Helvetica, Verdana, sans-serif;
    margin: 0px;
    padding: 0px;
    color: #333333;
    line-height: 1.6;
}

.gridLink   
{
    font-size: 12px;
    font-family: "Segoe UI", "Helvetica Neue", Arial, Helvetica, Verdana, sans-serif;
    margin: 0px;
    padding: 0px;
    color: #2563eb;
    text-decoration: none;
}

.gridLink:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

a:link, a:visited
{
    color: #2563eb;
    text-decoration: none;
}

a:hover
{
    color: #1d4ed8;
    text-decoration: underline;
}

a:active
{
    color: #1e40af;
}

p
{
    margin-bottom: 10px;
    line-height: 1.6em;
}


/* HEADINGS   
----------------------------------------------------------*/

h1, h2, h3, h4, h5, h6
{
    font-size: 1.5em;
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 0px;
}

h1
{
    font-size: 1.8em;
    padding-bottom: 0px;
    margin-bottom: 0px;
    font-weight: 700;
}

h2
{
    font-size: 1.5em;
    font-weight: 600;
}

h3
{
    font-size: 1.2em;
}

h4
{
    font-size: 1.1em;
}

h5, h6
{
    font-size: 1em;
}

.rightColumn > h1, .rightColumn > h2, .leftColumn > h1, .leftColumn > h2
{
    margin-top: 0px;
}


/* PRIMARY LAYOUT ELEMENTS   
----------------------------------------------------------*/

.page
{
    width: 95%;
    max-width: 95vw;  /* use 95% of viewport - clearly wider than before */
    min-width: 1200px;
    background-color: #ffffff;
    margin: 0 auto;
    min-height: 100vh;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.header
{
    position: relative;
    margin: 0px;
    padding: 0px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header .title
{
    flex: 1;
}

.header h1
{
    font-weight: 700;
    margin: 0px;
    padding: 15px 0;
    color: #ffffff;
    border: none;
    line-height: 1.2em;
    font-size: 1.6em;
}

.main
{
    padding: 20px;
    margin: 0;
    min-height: 420px;
    background-color: #ffffff;
}

.leftCol
{
    padding: 6px 0px;
    margin: 12px 8px 8px 8px;
    width: 200px;
    min-height: 200px;
}

.footer
{
    color: #6b7280;
    padding: 20px 0px;
    margin: 0px auto;
    text-align: center;
    line-height: normal;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
}


/* TAB MENU   
----------------------------------------------------------*/

div.hideSkiplink
{
    background-color: #1e40af;
    width: 100%;
    padding: 0;
}

div.menu
{
    padding: 0;
}

div.menu ul
{
    list-style: none;
    margin: 0px;
    padding: 0px;
    width: auto;
    display: flex;
}

div.menu ul li
{
    margin: 0;
}

div.menu ul li a, div.menu ul li a:visited
{
    background-color: transparent;
    border: none;
    color: #e5e7eb;
    display: block;
    line-height: 1.35em;
    padding: 12px 20px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    font-weight: 500;
}

div.menu ul li a:hover
{
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    text-decoration: none;
}

div.menu ul li a:active, div.menu ul li a.selected
{
    background-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    text-decoration: none;
}

/* FORM ELEMENTS   
----------------------------------------------------------*/

fieldset
{
    margin: 1em 0px;
    padding: 1.5em;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background-color: #f9fafb;
}

fieldset p 
{
    margin: 2px 12px 10px 10px;
}

fieldset.login label, fieldset.register label, fieldset.changePassword label
{
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #374151;
}

fieldset label.inline 
{
    display: inline;
}

legend 
{
    font-size: 1.1em;
    font-weight: 600;
    padding: 2px 8px;
    color: #1f2937;
}

input.textEntry, input.passwordEntry, textarea.textEntry,
asp\:TextBox, asp\:DropDownList
{
    width: 100%;
    max-width: 416px;  /* 30% larger than 320px */
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.95em;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #ffffff;
}

input.textEntry:focus, input.passwordEntry:focus, textarea.textEntry:focus
{
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea.textEntry
{
    min-height: 80px;
    resize: vertical;
}

div.accountInfo
{
    width: 42%;
}

/* BUTTONS
----------------------------------------------------------*/

input[type="submit"], input[type="button"], button,
asp\:Button, .theButton, .btn
{
    background-color: #2563eb;
    border: none;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.2s ease;
    display: inline-block;
    text-align: center;
    min-width: 100px;
}

input[type="submit"]:hover, input[type="button"]:hover, button:hover,
asp\:Button:hover, .theButton:hover, .btn:hover
{
    background-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

input[type="submit"]:active, input[type="button"]:active, button:active,
asp\:Button:active, .theButton:active, .btn:active
{
    background-color: #1e40af;
    transform: translateY(0);
}

input[type="submit"]:disabled, input[type="button"]:disabled, button:disabled,
asp\:Button:disabled, .theButton:disabled, .btn:disabled
{
    background-color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

/* GRIDVIEW STYLING
----------------------------------------------------------*/

asp\:GridView
{
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

asp\:GridView th,
asp\:GridView .HeaderStyle
{
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #ffffff;
    font-weight: 600;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #1e40af;
}

asp\:GridView td,
asp\:GridView .RowStyle
{
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    background-color: #ffffff;
}

asp\:GridView .AlternatingRowStyle
{
    background-color: #f9fafb;
}

asp\:GridView .RowStyle:hover,
asp\:GridView .AlternatingRowStyle:hover
{
    background-color: #eff6ff;
}

asp\:GridView .PagerStyle
{
    background-color: #f9fafb;
    padding: 10px;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

asp\:GridView .PagerStyle a
{
    color: #2563eb;
    padding: 5px 10px;
    margin: 0 2px;
    border-radius: 4px;
    text-decoration: none;
}

asp\:GridView .PagerStyle a:hover
{
    background-color: #dbeafe;
}

asp\:GridView .SelectedRowStyle
{
    background-color: #dbeafe !important;
    font-weight: 600;
}

/* CHECKBOXES AND RADIO BUTTONS
----------------------------------------------------------*/

input[type="checkbox"], input[type="radio"]
{
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2563eb;
}

/* DROPDOWN LISTS
----------------------------------------------------------*/

select, asp\:DropDownList
{
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.95em;
    font-family: inherit;
    background-color: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

select:focus, asp\:DropDownList:focus
{
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* MISC  
----------------------------------------------------------*/

.clear
{
    clear: both;
}

.title
{
    display: block;
    float: left;
    text-align: left;
    width: auto;
}

.loginDisplay
{
    font-size: 1em;
    display: block;
    text-align: right;
    padding: 0;
    color: #ffffff;
}

.loginDisplay a:link, .loginDisplay a:visited,
.loginDisplay asp\:LinkButton, .logout-btn
{
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
    display: inline-block;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.loginDisplay a:hover,
.loginDisplay asp\:LinkButton:hover, .logout-btn:hover
{
    background-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    text-decoration: none;
}

.failureNotification
{
    font-size: 1.1em;
    color: #dc2626;
    padding: 10px;
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 4px;
    margin: 10px 0;
}

.successNotification
{
    font-size: 1.1em;
    color: #059669;
    padding: 10px;
    background-color: #d1fae5;
    border: 1px solid #6ee7b7;
    border-radius: 4px;
    margin: 10px 0;
}

.bold
{
    font-weight: bold;
}

.submitButton
{
    text-align: right;
    padding-right: 10px;
    margin-top: 20px;
}

/* LINK BUTTONS
----------------------------------------------------------*/

asp\:LinkButton
{
    color: #2563eb;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-block;
}

asp\:LinkButton:hover
{
    background-color: #eff6ff;
    color: #1d4ed8;
    text-decoration: none;
}

/* TABLES
----------------------------------------------------------*/

table
{
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

table td, table th
{
    padding: 10px;
    border: 1px solid #e5e7eb;
}

table th
{
    background-color: #f9fafb;
    font-weight: 600;
    color: #1f2937;
}

/* LABELS
----------------------------------------------------------*/

asp\:Label, label
{
    display: inline-block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #374151;
}

/* VALIDATION
----------------------------------------------------------*/

asp\:ValidationSummary
{
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    color: #dc2626;
}

asp\:RequiredFieldValidator,
asp\:RegularExpressionValidator,
asp\:CompareValidator
{
    color: #dc2626;
    font-size: 0.9em;
}
