/* 
    Document   : Callplus White GPT-Style Design System
    Created on : 2025-10-10
    Author     : Callplus Team
    Description: Clean white GPT-style design inspired by ChatGPT interface
*/

/* 
========================================================================
  CSS VARIABLES - DESIGN TOKENS
========================================================================
*/
:root {
    /* White GPT-Style Color Palette */
    --primary-bg: #ffffff;
    --secondary-bg: #f8f9fa;
    --tertiary-bg: #f1f3f4;
    --border-color: #e0e0e0;
    --border-light: #f0f0f0;
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-muted: #6c757d;
    --accent-color: #10a37f;
    --accent-hover: #0d8f6f;
    --error-color: #dc3545;
    --warning-color: #f59e0b;
    --success-color: #10b981;
    
    /* Spacing Scale */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 20px;
    --space-2xl: 24px;
    --space-3xl: 32px;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-xs: 11px;
    --font-size-sm: 13px;
    --font-size-base: 14px;
    --font-size-lg: 16px;
    --font-size-xl: 18px;
    --font-size-2xl: 24px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    
    /* Shadows - GPT Style */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-gpt: 0 2px 16px rgba(0,0,0,0.1);
    
    /* Layout */
    --sidebar-width: 260px;
    --header-height: 60px;
    --content-max-width: 1200px;
}

/* 
========================================================================
  GLOBAL RESET & BASE STYLES
========================================================================
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: var(--font-size-base);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 
========================================================================
  HEADER
========================================================================
*/
#header {
    width: 100%;
    margin-top: 5px;
    margin-left: 0;
    margin-right: 0;
    background: var(--primary-bg);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    position: relative;
    padding: 5px 0;
}

#header #logo img {
    height: 65px;
    margin-left: 10px;
    transition: transform 0.3s ease;
}
#header #logo img:hover {
    transform: scale(1.05) rotate(-2deg);
}

#header #pageHeading {
    text-align: left;
    margin-left: 10px;
    font-size: 1.5em;
    font-weight: bold;
    vertical-align: 5px;
    display: inline-block;
    color: var(--text-primary);
    transition: color 0.3s ease;
}
#header #pageHeading:hover {
    color: var(--accent-color);
}

#header #userHead {
    text-align: right;
    float: right;
    margin-right: 10px;
}
#header #userHead a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.3s ease;
}
#header #userHead a:hover {
    color: var(--accent-color);
}

/* 
========================================================================
  CONTENT LAYOUT
========================================================================
*/
#content {
    margin: 10px auto;
    width: 810px;
    background: var(--primary-bg);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-gpt);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}
#content:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--border-light);
}

/* Left & Right Sections in Content */
#content #left {
    width: 200px;
    float: left;
    background-color: var(--secondary-bg);
    margin-right: 10px;
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}
#content #right {
    width: 600px;
    float: right;
    background-color: var(--secondary-bg);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

/* 
========================================================================
  FOOTER
========================================================================
*/
#footer {
    background: var(--primary-bg);
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    padding: 12px 0;
    height: auto;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
    backdrop-filter: blur(8px);
}
#footer a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.3s ease;
}
#footer a:hover {
    color: var(--accent-color);
    font-weight: bold;
}

/* 
========================================================================
  UTILITY CLASSES & CLEARFIX
========================================================================
*/
.clear {
    margin: 0;
    clear: both;
}

/* 
========================================================================
  ITEM HOLDING BOX
========================================================================
*/
.itemHoldingBox {
    margin: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
    background-color: var(--primary-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}
.itemHoldingBox:hover {
    box-shadow: var(--shadow-gpt);
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

/* 
========================================================================
  TOP BAR
========================================================================
*/
#topBar {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--tertiary-bg) 100%);
    height: 32px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
}

.roundCornerTopLeft10 {
    -moz-border-top-left-radius: 10px;
    border-top-left-radius: 10px;
}

.roundCornerTopRight10 {
    -moz-border-top-right-radius: 10px;
    border-top-right-radius: 10px;    
}

#topBar .alignRight,
#topBar .alignLeft {
    margin: 2px 10px;
    color: var(--text-primary);
    font-size: medium;
    font-weight: bold;
}

#topBar .alignLeft img {
    height: 15px;
    width: 15px;
    margin-top: 1px;    
}

#topBar .alignRight a img {
    height: 18px;
    width: 18px;
    margin-top: 1px;
}

.alignLeft {
    float: left;
    text-align: left;
}

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

#topBar .alignRight #didDisplay {
    font-weight: normal;
    font-size: small;
}

/* 
========================================================================
  TABLE / CONTENT HIGHLIGHTS
========================================================================
*/
#contentHighLight {
    margin-top: 0px;
    border-collapse: separate;
    border-spacing: 15px;
}
#contentHighLight tr td {
    color: var(--text-primary);
    text-align: center;
    padding-left: 7px;
    padding-right: 7px;
    vertical-align: middle;
}
#contentHighLight tr td img {
    width: 50px;
    height: 50px;
}

#detail #description,
#menuDetail {
    margin: 5px;
}

/* 
========================================================================
  PUSH
========================================================================
*/
.push {
    height: 40px;
    clear: both;
}

/* 
========================================================================
  SIDE MENU
========================================================================
*/
.sideMenu ul {
    list-style: circle;
    padding-left: 15px;
}
.sideMenu ul li a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.3s ease;
}
.sideMenu ul li a:hover {
    font-weight: bold;
    color: var(--accent-color);
}

/* 
========================================================================
  SIDE SEARCH
========================================================================
*/
.sideSearch {
    text-align: right;
}
.sideSearch input {
    margin: 5px;
    width: 170px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 5px;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    transition: box-shadow 0.2s ease;
}
.sideSearch input:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}
.sideSearch button {
    margin-right: 5px;
    margin-bottom: 5px;
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}
.sideSearch button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* 
========================================================================
  INFO ALERT
========================================================================
*/
#InfoAlert,
#infoAler div {
    text-align: center;
    color: var(--text-primary);
    font-size: medium;
}

#infoAlerImageHolder img {
    width: 200px;
    height: auto;
}

/* 
========================================================================
  ADD FORM PAGE
========================================================================
*/
#AddFormPage {
    width: 480px;
    margin: 0px auto;
    background: var(--primary-bg);
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-gpt);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}
#AddFormPage:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--border-light);
}

#addFormHolder form .lblFieldHolder label {
    font-weight: bold;
    color: var(--text-primary);
}

#addFormHolder form .lblFieldHolder input[type="text"],
#addFormHolder form .lblFieldHolder input[type="password"],
#addFormHolder form .lblFieldHolder textarea {
    float: right;
    width: 280px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 5px;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
#addFormHolder form .lblFieldHolder input[type="text"]:focus,
#addFormHolder form .lblFieldHolder input[type="password"]:focus,
#addFormHolder form .lblFieldHolder textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.1);
    outline: none;
}

#addFormHolder form .lblFieldHolder select {
    float: right;
    width: 292px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--primary-bg);
    color: var(--text-primary);
    padding: 5px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
#addFormHolder form .lblFieldHolder select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.1);
    outline: none;
}

#addFormHolder form .lblFieldHolder textarea {
    height: 60px;
}

#addFormHolder form .lblFieldHolder {
    margin: 5px;
    padding-bottom: 10px;
    clear: both;
}

.addFormBtnHolder {
    text-align: right;
    margin: 5px;
}
.addFormBtnHolder button {
    min-width: 80px;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    background: var(--accent-color);
    color: white;
    cursor: pointer;
    padding: 10px 20px;
    transition: all 0.2s ease;
    font-size: var(--font-size-sm);
}
.addFormBtnHolder button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.addFormBtnHolder button[type="button"] {
    background: var(--secondary-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.addFormBtnHolder button[type="button"]:hover {
    background: var(--tertiary-bg);
}

/* 
========================================================================
  RESIZE, HR, & EDIT FORM PAGE
========================================================================
*/
.resizeFalse {
    resize: none;
}

.hr {
    padding-top: 5px;
    padding-left: 5px;
    padding-right: 5px;
}
.hr hr {
    border: 0;
    height: 2px;
    background-color: var(--border-color);
}

#EditFormPage {
    width: 920px;
    margin: 0px auto;
    background: var(--primary-bg);
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-gpt);
    border: 1px solid var(--border-color);
}

/* 
========================================================================
  NOTIFY
========================================================================
*/
#notify {
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    display: none;
    overflow: hidden;
}

#notify .notify {
    margin-top: 3px;
    padding: 2px 5px;
    background-color: var(--secondary-bg);
    border-radius: var(--radius-md);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}
#notify .notify:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

#notify .notifyerror {
    border: 2px solid var(--error-color);
    color: var(--error-color);
}

#notify .notifywarning {
    border: 2px solid var(--warning-color);
    color: var(--warning-color);
}

#notify .notifyconfirm {
    border: 2px solid var(--success-color);
    color: var(--success-color);
}

#notify div .heading {
    font-weight: bold;
    margin-right: 5px;
}

.forceDisplay {
    display: block !important;
}

/* 
========================================================================
  REPORT ICONS
========================================================================
*/
.rpt_icon_pic {
    border: 10px solid var(--primary-bg);
    float: left;
    height: 60px;
    width: 60px;
    overflow: hidden;
    background: var(--secondary-bg);
    border-radius: var(--radius-md);
}

.rpt_icon_focus {
    transition: all 1s ease;
}
.rpt_icon_focus:hover {
    border: 3px solid var(--border-color);
    border-radius: 20%;
}

#rpt_icon_holder {
    padding-top: 40px;
    padding-left: 250px;
}

/* 
========================================================================
  RADIO
========================================================================
*/
.radio {
    width: 1px;
}

/* 
========================================================================
  OPTIONAL HOVER GLOW FOR LINKS & BUTTONS
========================================================================
*/
a:hover {
    color: var(--accent-color);
    transition: color 0.2s ease;
}

/* GPT-Style Button Base */
button {
    font-family: var(--font-family);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    cursor: pointer;
}

/* GPT-Style Input Focus */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.1);
}