/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'Inconsolata';
  src: url('/assets/fonts/static/Inconsolata-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Inconsolata';
  src: url('/assets/fonts/static/Inconsolata-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Inconsolata';
  src: url('/assets/fonts/static/Inconsolata-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Inconsolata';
  src: url('/assets/fonts/static/Inconsolata-ExtraBold.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}


body {
  font-family: "Inconsolata", monospace;
  color: white;
  margin: 0;
  margin-left: 25%;
  margin-right: 25%;
  flex-direction: column;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 0.1%/*50px 20px*/;
  
  background-color: #0d0d2b;

  background-image:
  url('../images/pattern-squiggly-line-top.svg'),
  url('../images/pattern-squiggly-line-bottom-desktop.svg'),
  url('../images/pattern-circle.svg'),
  url('../images/pattern-circle.svg'),
  url('../images/pattern-lines.svg'),
  url("../images/background-desktop.png");
  
  background-attachment: 
    fixed,
    fixed,
    fixed,
    fixed,
    fixed,
    fixed;

  background-position:
    top right,          
    bottom left,
    200px -100px,
    700px 800px,
    top center,
    center center;      

  background-repeat: 
    no-repeat,
    no-repeat,
    no-repeat,
    no-repeat,
    no-repeat,
    no-repeat;

  background-size:
    auto,   
    auto,
    200px,
    200px,
    auto,
    cover;

}



/* Logo */
header {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 25px;
  text-align: center;
  margin-top: 20px;
}

/* Container */
.container {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  flex: 1;
  max-width: 450px;
  width: 90%;
}

.ticket-page-container {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  flex: 1;
  max-width: 450px;
  /*width: 100%;*/
  margin-top: 100px;
}

/* Titles */
h1 { font-size: 2.4rem; margin-bottom: 12px; line-height: 1.3; }
h2 { font-size: 0.9rem; }
h3 { font-size: 0.9rem; margin-bottom: 9px; text-align: left; }
h4 { font-size: 0.9rem; margin-bottom: 1px; text-align: left; }


.subtitle {
  font-size: 0.95rem;
  margin-bottom: 25px;
  color: #aaa;
}

/* Upload */
.upload-box {
  display: flex;
  border: 2px dashed #666;
  padding: 20px;
  border-radius: 14px;
  cursor: pointer;
  background: rgba(255,255,255,0.05);
  font-size: 1.2rem;transition: background-color 0.3s ease, border-color 0.3s ease;
}

.upload-box:hover {
  border-color: #ff5e62;
}

.upload-note {
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 10px;
  margin-bottom: 8%;
  text-align: left;
  align-items: center;
  margin-bottom: 20px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.icon-info {
  margin-top: -0.5%;
  align-items: center;
  width: 2.8%;
}

/* Inputs */
input {
  width: 100%;
  padding: 12px;
  margin: center;
  margin-top: 1%;
  margin-bottom: 4%;
  border-radius: 8px;
  border: none;
  outline: none;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

input::placeholder {
  color: #ccc;
  border-radius: 12px;
  font-size: 0.9rem;
  font-family: "Inconsolata", monospace;
}

input[type="text"]:hover, input[type="email"]:hover, .upload-box:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #ff5e62;
}

/* Button */
button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: #ff5e62;
  color: white;
  font-weight: bold;
  cursor: pointer;
  margin-top: 30px;
  font-size: 1rem;
  font-family: "Inconsolata", monospace;
  transition: background-color 0.3s;
}

button[type="submit"]:hover {
  background: #ff1a1a;
}

.upload-prompt, .upload-preview { width: 100%; text-align: center; }
.upload-preview { display: flex; flex-direction: column; align-items: center; gap: 15px; }
#avatarPreview { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; }
.preview-buttons { display: flex; gap: 10px; }
.preview-buttons button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 15px;
  border-radius: 5px;
  margin-top: 0;
  font-size: 0.8rem;
}
.preview-buttons button:hover { background: rgba(255, 255, 255, 0.2); }
.hidden { display: none !important; }

.error-message {
  color: #ff5e62;
  font-size: 0.85rem;
  text-align: left;
  margin-top: -15px;
  min-height: 1rem;
}
.invalid-field { border: 2px solid #ff5e62 !important; }
.error-message::before { content: ' '; vertical-align: middle; }


.ticket-name, .ticket-email{
  background-image: linear-gradient(45deg, #ff8a00, #e52e71);

  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* 1. O container principal do ticket */
.ticket-container {
    position: relative; 
    width: 550px;
    margin-bottom: 30%;
    align-items: center;
    display: block;
    
}

/* 2. A imagem de fundo do ticket */
.ticket-background {
    width: 100%;
    justify-content: center;
}

/* 3. O container para todo o conteúdo que fica sobreposto */
.ticket-content {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 30px 40px; 
    box-sizing: border-box; 
}

/* 4. Posicionamento dos elementos internos */
.ticket-header {
    position: absolute;
    top: 30px;
    left: 40px;
}

.logo {
    width: 250px; 
}

.date-location {
    font-size: 1rem;
    color: #ffffff6b;
    margin-top: 5px;
    padding-left: 60px;
}

/* --- Informações do Usuário: Avatar, Nome e GitHub --- */
.ticket-user-info {
    position: absolute;
    bottom: 30px;
    left: 40px;
    display: flex; 
    align-items: center; 
}

.avatar {
    width: 64px;
    height: 64px;
    border-radius: 20%;
    margin-right: 15px;
}

.user-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.user-github {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    color: #ffffff6b;
}

.github-icon {
    width: 16px;
    height: 16px;
}

/* --- ID do Ticket (Vertical) --- */
.ticket-idd {
    position: absolute;
    top: 50%;
    right: 13px;
    
    transform: translateY(-50%) rotate(90deg); 
    
    color: #ffffff65;
    font-size: 1.5rem;
    letter-spacing: 1px;
}


@media (max-width: 430px) {
  .logo {
    width: 170px; 
  }

  h1 {
    font-size: 1.8rem;
  }

  .ticket-page-container {
    margin-top: 0px;
  }

  
}
