
@font-face {
    font-family:"Materiam";
    src: url("/jakarta.faces.resource/fonts/Materiam.ttf.xhtml") format('opentype');
}

@font-face {
    font-family:"Unit Light";
    src: url("/jakarta.faces.resource/fonts/Unit-Light.ttf.xhtml") format('opentype');
}

@font-face {
    font-family:"Roboto Regular";
    src: url("/jakarta.faces.resource/fonts/Roboto-Regular.ttf.xhtml") format('opentype');
}

@font-face {
    font-family:"Lato Regular";
    src: url("/jakarta.faces.resource/fonts/Lato-Regular.ttf.xhtml") format('opentype');
}



body {
    height: 100vh;
      background: radial-gradient(
        ellipse at center,
        #3a3a3a 0%,
        #1f1f1f 60%,
        #121212 100%
      );
    font-size: 12px;
    font-family: "Lato Regular";
    color: #000000;
    margin: 0px;
    overflow-x: hidden;


    
}

h1 {
    font-family: "Roboto Regular";

    font-size:  32px;
    margin: 0px;
    padding: 0px;
    color: white;
}

a:link, a:visited {
  color: #045491;
  font-weight : bold;
  text-decoration: none;
}

a:link:hover, a:visited:hover  {
  color: #045491;
  font-weight : bold;
  text-decoration : underline;
}


/* - - - - Form Styling - - - - - */

.form-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    animation: fadeIn 1s ease-in;
}

.form-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.form-field label {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

input[type="text"], input[type="password"] {
    font-size: 16px;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus, input[type="password"]:focus {
    border-color: #3f51b5;
    box-shadow: 0 0 8px rgba(63, 81, 181, 0.2);
    outline: none;
}

.submit-button {
    width: 100%;
    margin-top: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* - - - - -  BORDER ANIMATION - - - - - - - - - - */



.block {
       
	position: relative;
	width: 300px;
	height: 300px;
	background: linear-gradient(0deg, #000, #272727);
}

.block:before, .block:after {
     
	content: '';
	position: absolute;
	left: -1px;
	top: -1px;
	/*
        background: linear-gradient(45deg, #fb0094, #0000ff, #00ff00,#ffff00, #ff0000, #fb0094, 
		#0000ff, #00ff00,#ffff00, #ff0000);
        */
        background: linear-gradient(45deg, #fbfbfb, #eeeeee, #aaaaaa,#333333, #888888, #eeeeee, 
		#ffffff, #999999,#bbbbbb, #cccccc);
	background-size: 400%;
	width: calc(100% + 2px);
	height: calc(100% + 2px);
	z-index: -1;
	animation: steam 20s linear infinite;
}

@keyframes steam {
	0% {
		background-position: 0 0;
	}
	50% {
		background-position: 300% 0;
	}
	100% {
		background-position: 0 0;
	}
}

.block:after {
	filter: blur(10px);
}

/* - - - - - - - - - - - - - - - - - - - - - */


.wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;

  grid-template-areas:
    ". a a ."
    ". a a .";
}
.item1 {
  
  grid-area: a;
  align-self: center;
  justify-self: center;
}

/* - - - - - - - - Upload Styles - - - - - - - - - - - - - */

  .ui-fileupload {
      display: none;
  }
  

  
/* DataView styles are now handled by dark-theme.css and light-theme.css */

/* - - - - - - - - Upload Tasks Panel Styles - - - - - - - - - - - - - */

.upload-tasks-panel {
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
}

.task-item {
    background: #1a1a2e;
    border-radius: 4px;
    padding: 6px 8px;
    margin-bottom: 4px;
    border-left: 3px solid #4a9eff;
}

.task-item.task-status-QUEUED {
    border-left-color: #ffd700;
}

.task-item.task-status-PROCESSING_STEPGURU,
.task-item.task-status-PROCESSING_AMATIX {
    border-left-color: #4a9eff;
}

.task-item.task-status-COMPLETED {
    border-left-color: #00ff88;
}

.task-item.task-status-FAILED,
.task-item.task-status-TIMEOUT,
.task-item.task-status-CANCELLED {
    border-left-color: #ff4444;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.task-filename {
    font-size: 10px;
    font-weight: bold;
    color: #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.task-cancel-btn {
    background: transparent;
    border: none;
    color: #ff6666;
    cursor: pointer;
    font-size: 14px;
    padding: 0 4px;
    line-height: 1;
}

.task-cancel-btn:hover {
    color: #ff4444;
}

.task-progress {
    height: 3px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 2px;
}

.task-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4a9eff, #00ff88);
    transition: width 0.3s ease;
}

.task-step {
    font-size: 9px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════════════════════════════════
   OLED CONSOLE - Integrated Progress & Messages Display
   100% Monochromatic white/grey style - Horizontal layout
   ═══════════════════════════════════════════════════════════════════════════ */

.oled-console {
    font-family: 'Courier New', 'Consolas', monospace;
    background: #000;
    border: 1px solid #222;
    border-radius: 5px;
    padding: 6px 8px;
    width: 75%;
    min-width: 400px;
    height: 58px;
    overflow: hidden;
    color: #e0e0e0;
    text-transform: uppercase;
    font-size: 9px;
    letter-spacing: 0.5px;
    line-height: 1.4;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: stretch;
}

.oled-console.active {
    border-color: #444;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.08);
}

/* Progress section - LEFT SIDE (fixed width so it never grows/shrinks with content) */
.oled-progress-section {
    border-right: 1px solid #222;
    padding-right: 10px;
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    flex-shrink: 0;
}

.oled-header-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
    overflow: hidden;
}

.oled-icon {
    font-size: 8px;
}

.oled-icon.blink {
    animation: oled-blink 1s steps(1) infinite;
}

@keyframes oled-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.4; }
}

.oled-parts {
    margin-left: auto;
    font-size: 9px;
}

.oled-elapsed {
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
    font-size: 9px;
}

/* VU Meter */
.oled-vu-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.oled-vu-meter {
    display: flex;
    gap: 1px;
    flex: 1;
}

.vu-seg {
    height: 6px;
    background: #1a1a1a;
    border: 1px solid #222;
    flex: 1;
}

.vu-seg.lit {
    background: #e0e0e0;
    box-shadow: 0 0 3px #fff;
}

.oled-percent {
    font-size: 10px;
    font-weight: bold;
    min-width: 28px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.oled-filename {
    font-size: 8px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Messages section - RIGHT SIDE */
.oled-messages {
    color: #e0e0e0;
    font-size: 8px;
    flex: 1;
    min-width: 0;
    max-height: 50px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER CENTER - Upload drop zone + OLED Console wrapper
   ═══════════════════════════════════════════════════════════════════════════ */

.header-center {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-self: stretch;
    justify-content: center;
    align-self: center;
}

/* Compact upload drop zone */
.header-dropzone {
    width: 44px;
    height: 44px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.4);
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.header-dropzone:hover {
    border-color: rgba(74, 158, 255, 0.5);
    color: rgba(74, 158, 255, 0.8);
    background: rgba(74, 158, 255, 0.05);
}

/* PrimeFaces adds this class on dragover */
.header-dropzone.ui-fileupload-highlight {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}


/* - - - - - - - - Upload Restricted Message - - - - - - - - - - - - - */

.upload-restricted-message {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    color: #92400e;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.upload-restricted-message i {
    font-size: 20px;
    color: #f59e0b;
}

.auth-links {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.auth-links a {
    color: #4a9eff;
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}