/* Modern Design System - Global Styles */

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
    background: #f8fafc;
    line-height: 1.6;
}

img {
    border: 0px;
}

/* Modern Buttons */
.btn, .button-success, .button-error {
    display: inline-block;
    padding: 8px 16px;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn:hover, .button-success:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-success {
    background: #10b981;
}

.btn-success:hover {
    background: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-warning {
    background: #f59e0b;
}

.btn-warning:hover {
    background: #d97706;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-danger, .button-error {
    background: #ef4444;
}

.btn-danger:hover, .button-error:hover {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-primary {
    background: #2563eb;
}

.btn-default {
    background: #64748b;
}

.btn-default:hover {
    background: #475569;
}

.btn-xs {
    padding: 4px 10px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}


/* Modern Panels & Cards */
.panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    margin-bottom: 20px;
    overflow: hidden;
}

.panel-heading {
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.panel-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
}

.panel-primary > .panel-heading {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.panel-body {
    padding: 20px;
}

.panel-default > .panel-heading {
    background: #f8fafc;
}

/* Search & Form Boxes */
.searchbox {
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    display: none;
    margin-top: 12px;
    max-width: 700px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.formbox {
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    margin: 12px;
    max-width: 500px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

/* Form Controls */
.form-control {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 2px solid #e5e7eb;
}

.table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.table-hover tbody tr:hover {
    background: #f8fafc;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Alerts */
.alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-color: #a7f3d0;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-color: #bfdbfe;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}


.searchbox{
padding:4px;
border-radius:4px;
border:1px solid #dddddd;
display:none;
margin-top:8px;
max-width:700px;
 

}

.formbox{
padding:10px;
border-radius:4px;
border:1px solid #dddddd;
margin:8px;
max-width:500px;
 

}







div#left_div{
    float:left;
}

/* Modern Count Buttons */
div.count_btn{
    cursor:pointer;
    float:left;
    width:38px;
    background:#334155;
    color:#ffffff;
    margin:3px;
    padding:8px;
    font-size:16px;
    font-family:'arial';
    border-radius:6px;
    text-align:center;
    transition: background 0.2s ease, transform 0.1s ease;
}

div.count_btn:hover {
    background: #1e293b;
    transform: scale(1.05);
}

/* Modern Question Tables */
.hidequestion{
    visibility:hidden;
    display:none;
}

.showquestion{
}

table.showquestion{
    border:1px solid #e5e7eb;
    padding:8px;
    margin-top:10px;
    overflow-y:scroll;
    background: #ffffff;
    border-radius: 8px;
}

.showquestion td{
    border-bottom:1px solid #f1f5f9;
    padding:12px;
}

.showquestion tr:hover{
    background: #f8fafc;
}

table.hidequestion{
    border:1px solid #e5e7eb;
    padding:8px;
    margin-top:10px;
    overflow-y:scroll;
}

.hidequestion td{
    border-bottom:1px solid #f1f5f9;
    padding:12px;
}

.hidequestion tr:hover{
    background: #f8fafc;
}

/* Modern Category Box */
div.category_box{
    border:1px solid #cbd5e1;
    width:110px;
    padding:10px;
    background:#f1f5f9;
    float:left;
    margin-right:5px;
    font-size:14px;
    color:#0f172a;
    font-family:arial;
    font-weight:600;
    cursor:pointer;
    border-radius:8px;
    transition: all 0.2s ease;
}

div.category_box:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    transform: translateY(-2px);
}




/* tooltip */
a.tooltip {outline:none; } a.tooltip strong {line-height:30px;} a.tooltip:hover {text-decoration:none;} a.tooltip span { z-index:10;display:none; padding:14px 20px; margin-top:20px; margin-left:-125px; width:240px; line-height:16px; } a.tooltip:hover span{ display:inline; position:absolute; border:2px solid #FFF; color:#EEE; background:#000 url(images/css-tooltip-gradient-bg.png) repeat-x 0 0; } .callout {z-index:20;position:absolute;border:0;top:-14px;left:120px;} /*CSS3 extras*/ a.tooltip span { border-radius:2px; -moz-border-radius: 2px; -webkit-border-radius: 2px; -moz-box-shadow: 0px 0px 8px 4px #666; -webkit-box-shadow: 0px 0px 8px 4px #666; box-shadow: 0px 0px 8px 4px #666; opacity: 0.8; }

div#qbank{
display:none;
visibility:hidden;
z-index:1000;
position:fixed;
top:0px;
left:0px;
width:100%;
height:100%;
background:#ffffff;
overflow-y:scroll;

}

#result{
    color:#065f46;
    background:#d1fae5;
    padding:16px;
    margin:10px;
    margin-left:0px;
    width:500px;
    border-radius:8px;
    border:1px solid #a7f3d0;
}
















/* Modern Arrow Box */
.arrow_box {
    position: relative;
    background: #ef4444;
    border: 0px solid #f59e0b;
    border-radius:6px;
    padding:8px 12px;
}
.arrow_box:after, .arrow_box:before {
    bottom: 100%;
    left: 7%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.arrow_box:after {
    border-color: rgba(239, 68, 68, 0);
    border-bottom-color: #ef4444;
    border-width: 10px;
    margin-left: -5px;
}

/* Home page modern layout */
.home-shell {
	max-width: 1080px;
	margin: 0 auto;
	padding: 24px 20px 48px;
	background: #f5f7fa;
	border-radius: 12px;
	color: #0f172a;
}
.hero-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
	margin-bottom: 24px;
}
.hero-card h2 {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 700;
	color: #0f172a;
}
.hero-card p {
	margin: 0 0 14px;
	font-size: 15px;
	color: #334155;
}
.cta-btn {
	display: inline-block;
	padding: 10px 18px;
	background: #2563eb;
	color: #ffffff;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	transition: background 0.15s ease, transform 0.15s ease;
}
.cta-btn:hover {
	background: #1d4ed8;
	transform: translateY(-1px);
}
.card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}
.card h3 {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
}
.card-quiz {
	margin-bottom: 8px;
}
.muted {
	color: #6b7280;
	font-size: 14px;
}
.chart-container {
	width: 100%;
	height: 480px;
}
@media (max-width: 640px) {
	.home-shell { padding: 16px 14px 32px; }
	.hero-card, .card { padding: 18px; }
	.chart-container { height: 360px; }
}



/* Live Classroom Styles */
.class_text_board{
    width:650px;
    height:500px;
    float:left;
}

.class_comment_board{
    width:300px;
    height:470px;
    border-radius:12px;
    float:right;
    padding:12px;
    border:1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

#comment_box{
    width:290px;
    height:400px;
    overflow-y:scroll;
    padding:8px;
}

#username_comment{
    color:#64748b;
    font-size:12px;
}

#comment_send{
    background: white; 
    border: 1px solid #d1d5db; 
    border-radius: 6px; 
    box-shadow: none; 
    color: #475569; 
    outline: none; 
    height:36px; 
    width: 275px;
    padding: 8px 12px;
    transition: border-color 0.2s ease;
}

#comment_send:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.class_heading{
    width:650px;
    height:40px;
    background:#334155;
    font-size:15px;
    color:#ffffff;
    padding: 10px 25px;
    border-radius:12px 12px 0px 0px;
    font-weight: 600;
}

#page::after{
    content: ' ';
    position: absolute;
    width: 0px;
    height:100%;
    top: 0;
    left: 20px;
    border-left: 1px solid #e5e7eb;
}

#page {
    width:650px;
    height:400px;
    overflow-y:scroll;
    line-height: 30px;
    font-size: 14px;
    padding: 12px 25px 27px;
    position: relative;
    outline: none;
    background: white;
    background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 8%) 0 0px;
    background-size: 100% 30px;
}

#page_res{
    float:right;
    color:#64748b;
    font-size:13px;
}

.div_exp_corr{
    background:#d1fae5;
    display:none;
    border-radius:6px;
    padding:8px;
}

.div_exp_wrong{
    background:#fee2e2;
    display:none;
    border-radius:6px;
    padding:8px;
}



/* Modern Statistics Box */
#stat_box{
    width:210px;
    height:110px;
    border:0px solid #e5e7eb;
    float:left;
    margin-left:20px;
    border-radius:12px;
    overflow:hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

#stat_head{
    width:210px;
    height:36px;
    background:#2563eb;
    font-family:arial;
    font-size:15px;
    color:#ffffff;
    text-align:center;
    padding:10px 0px 0px 0px;
    font-weight:600;
}

#stat_val{
    width:210px;
    height:74px;
    background:#f8fafc;
    font-family:arial;
    font-size:36px;
    color:#0f172a;
    text-align:center;
    padding:12px 0px 0px 0px;
    font-weight:700;
}



