/* --------------------------------------------------
    FONTS
-------------------------------------------------- */

@font-face {
    font-family: 'Bebas Neue';
	src: font-url('fonts/BebasNeue-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Helvetica Neue";
	src: font-url('fonts/HelveticaNeue-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Fallbacks until you add the actual font files */
body, p, span, div {
    font-family: "Helvetica Neue"
}

/* hides default browse and upload buttons */
#real-file-input {
  display: none;
}

button,
.browse-btn,
.submit-btn {
 	height: 40px;
	width: 90px;
    background: #f0a000;          
    border: 2px solid #000;
	border-radius: 5px;
    color: #000;
font-size: clamp(8px, 4vw, 16px);
font-weight: bold;
    cursor: pointer;
    margin-left: 0px;
    box-shadow: 0 0 0 3px #ffffff inset;  
    box-sizing: border-box; 
}

/* --------------------------------------------------
    GLOBAL PAGE STYLING
-------------------------------------------------- */

body {
    background: url("assets/gridbackground.png") center/cover no-repeat fixed;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow-x: hidden;
    color: #1a1a1a;
}

.top-header {
	position: relative;
    width: 100%;
    height: 1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 50px;
	padding-top: 40px;
	padding-right: 80px;
    box-sizing: border-box;
    top: 0;
    z-index: 1;
}

.rbs-logo {
    height: 42px;
    user-select: none;
}

.faq-link {
    font-family: "Bebas Neue", sans-serif;
    font-size: 40px;
    letter-spacing: 1px;
    color: white;
    text-decoration: none;
    transition: 0.2s;
}
.faq-link:hover {
    opacity: 0.7;
}

/* =======================
   PAGE BORDER WRAPPER
   ======================= */
.page-border {
    padding: 20px;                       /* inner padding */
    margin: 1x;         /* top margin = space below header */
    width: calc(100% - 20px);            /* keeps 10px side spacing on both sidfs */
    max-width: none;                     /* don’t constrain width */
    box-sizing: border-box;
    background: rgba(0,0,0,0);           /* keep transparent */
}

/* OPTIONAL: INNER WRAPPER IN CASE YOU NEED MORE CONTROL */
.page-inner {
    padding: 10px;               /* light inner padding — tweak if needed */
}


/* --------------------------------------------------
    MAIN WRAPPER
-------------------------------------------------- */

.page-wrapper {
	border: 5px solid #9a8577;
    width: 100%;
    height: 100vh;
    display: flex;
	align-items: flex-start;
    justify-content: center;
	padding-top: 20px;
	padding-bottom:20px;
    align-items: center;
    box-sizing: border-box;
	position: relative;
	z-index: 2;
}

.review-card {
    width: 1200px;
    height: 640px;
    background: #f2e4d4;
    border: 6px solid #a39178;
    box-shadow: 0 0 0 2px #0000 inset;
    display: flex;
    flex-direction: column;
    transform-origin: top center;

    
    overflow: hidden;
}




/* Adjust scaling for smaller screens */
@media (max-width: 1300px) {
    .review-card {
        transform: scale(0.85);
    }
}
@media (max-width: 1100px) {
    .review-card {
        transform: scale(0.70);
    }
}
@media (max-width: 900px) {
    .review-card {
        transform: scale(0.60);
    }
}

/* --------------------------------------------------
    ID LABEL
-------------------------------------------------- */

.card-header {
    background: linear-gradient(
        to right,
        #13474c 0%,      /* left teal */
        #3e927c 40%,     /* midpoint deeper teal */
        #53b999 100%     /* right deep teal */
	);
	border: 3px solid #000;
    color: white;
    font-family: 'Helvetica Neue';
    font-size: 34px;
	font-weight: 100;
    padding: 10px 20px;
    letter-spacing: 1px;
	text-align:center;
	margin-bottom: 0;
}

/* --------------------------------------------------
    CARD CONTENT LAYOUT
-------------------------------------------------- */

.card-content {
    display: grid;
    grid-template-columns: 340px 1fr;
    height: 100%;
}

/* --------------------------------------------------
    PORTRAIT SECTION
-------------------------------------------------- */

.portrait-section {
    display: flex;
    flex-direction: column;
    padding: 30px;
    margin-top: 20px;
}

.portrait-frame {
    width: 250px;
    height: 350px;
    background: #D7CFBE;
    border: 3px solid #000;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
}

.portrait-display {
	align-content: center;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Portrait Images */
.portrait-1 {
    background-image: url("assets/portrait-1.png");
}

.portrait-2 {
    background-image: url("assets/portrait-2.png");
}

.portrait-3 {
    background-image: url("assets/portrait-3.png");
}

.portrait-4 {
    background-image: url("assets/portrait-4.png");
}

.portrait-5 {
    background-image: url("assets/portrait-5.png");
}


.portrait-caption {
    text-align: center;
    font-family: "Bebas Neue", sans-serif;
    font-size: 30px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.role-selector {
    margin-top: 10px;
    text-align: center;
}

.role-label {
    font-family: "Bebas Neue", sans-serif;
    font-size: 20px;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.role-controls {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 3px;
}


.portrait-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.portrait-btn {
    border: 2px solid #000;
    background: #D7CFBE;
    font-size: 18px;
    width: 40px;
    height: 30px;
    cursor: pointer;
}
.portrait-btn:hover {
    background: #c8c0b0;
}

/* ===============================
   TITLE + PORTRAIT PICKER
   =============================== */

.selector-row {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    gap: 30px;
}

.selector-block {
    flex: 1;
    text-align: center;
}

.selector-label {
    font-family: "Bebas Neue", sans-serif;
    font-size: 20px;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.selector-controls {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 3px;
}

/* Remove old dropdown-based role selector visuals */
.role-selector,
.role-label,
.role-select {
    display: none !important;
}


/* --------------------------------------------------
    INFO SECTION
-------------------------------------------------- */
.info-panel {
    background-color: #e3d5c5;  /* your darker beige */
    padding: 12px 20px;
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;     
}

.info-panel-employee {
  margin-top: 0px;
}

.info-section {
    padding-bottom: 0px;
    box-sizing: border-box;
}


.employee-info {
    display: flex;
    margin-bottom: 15px;
	margin-left: 20px
}

.employee-info p {
    font-size: clamp(14px, 2vw, 20px);
    line-height: 30px;
    margin: 4px 0;
}

.employee-info .right-info {
    margin-left: auto;   
    text-align: left;    
}
/* ROLE TITLE */
.role-title {
	text-align: center;
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(50px, 4vw, 80px);
    margin: 0;
    margin-top: 10px;
    letter-spacing: 3px;
}

.hero-word {
    color: #00000; !important;
	font: "Helvetica Neue";
	font-weight: 500;
}

.dispatcher-word {
    font-weight: 300;    /* lighter weight */
    letter-spacing: 0px; /* optional — can remove */
}


/* --------------------------------------------------
    UPLOAD BAR
-------------------------------------------------- */

.upload-panel {
    margin-top: 10px;
	display: flex;
    flex-direction: column;
    align-items: center; 
    gap: 10px;           
}

.upload-label {
    text-align: center;
    width: 100%;
	height: 50px;
    display: block;
    margin-bottom: 8px;
}

.upload-label {
    font-family: "Bebas Neue", sans-serif;
	align-items:center;
    font-size: 45px;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

/* Upload box styling */
.upload-box {
    width: 100%;
    height: 70px;
    background: #f2e4d4;          
    border: 2px solid #000;       
        box-shadow:
        inset 0 0 0 6px #f2e4d4,           
        inset 0 0 0 8px #000;              
    display: flex;
    align-items: center;
    padding: 0px 20px;         
    margin: 3;
    box-sizing: border-box;
    position: relative;
}


#file-input {
    display: none;
}

.file-name {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 14px;
    padding-left: 4px;
    box-sizing: border-box;
    
}

.browse-btn:hover {
    background: #fffff;
}

/* --------------------------------------------------
    PROGRESS BAR
-------------------------------------------------- */

.hidden {
    display: none;
}

/* Submit button */
.submit-btn {
    margin-top: 12px;
	width: 90px;
	background: #f0a000;          
    border: 2px solid #000;
	border-radius: 5px;
    color: #000;
	font-family: "Bebas Neue", sans-serif;
    font-size: 18px;
align-items: center;
	box-shadow: 0 0 0 3px #ffffff inset;
    cursor: pointer;
}
.submit-btn:hover {
    background: #e8caa7;
}

/* Results panel */
.results-panel {
    margin-top: 25px;
    text-align: center;
}

.total-calls {
    font-family: 'Bebas Neue';
    font-size: 40px;
    margin-bottom: 10px;
}


.progress-bar {
    width: 100%;
    height: 65px;
    border: 3px solid #000;
    box-shadow: inset 0 0 0 2px #B8AE9D;
    display: flex;
    overflow: hidden;
    margin: 0;
    box-sizing: border-box;   
}

.progress-bar.hidden {
    display: none;
}

.bar-segment {
    height: 100%;
}

.success { background: #568A79; !important; }
.fail { background: #9A5E5D; !important;}
.miss { background: #a7a6a6; !important;}

/* Results text */
.results-breakdown {
    margin-top: 12px;
    font-size: 26px;
    font-family: 'Bebas Neue';
    display: flex;
    justify-content: center;
    gap: 60px;
}

.count-num {
    font-weight: bold;
}

/* Scale card down when viewport width is smaller than the card width */
@media (max-width: 1400px) {
    .review-card {
        transform: scale(calc((100vw - 80px) / 1190));
    }
}

/* scale a bit further down on very short screens */
@media (max-height: 800px) {
    .review-card {
        transform: scale(0.9);
    }
}

@media (max-height: 700px) {
    .review-card {
        transform: scale(0.8);
    }
}


.success { background: #469f83; }
.fail    { background: #9f4646; }
.miss    { background: #a7a6a6; }
