/* style.css - Projeto Juridico Moderno */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
  --primary-color: #0f172a;      /* Dark slate */
  --secondary-color: #3b82f6;    /* Modern blue */
  --accent-color: #f59e0b;       /* Amber */
  --bg-color: #f8fafc;           /* Light cool gray */
  --card-bg: #ffffff;
  --text-primary: #334155;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 8px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Header & Banner */
.top-banner {
  text-align: center;
  padding: 15px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
}
.top-banner img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.main-container {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
}

/* Header Section */
.hero-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 30px 40px;
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-md);
  margin-bottom: -10px;
  position: relative;
  z-index: 10;
}

.hero-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0px;
}

.hero-header p {
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 300;
}
.hero-header .hero-subtitle {
  text-align: right;
  font-size: 0.95rem;
  opacity: 0.8;
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 25px;
  background: var(--card-bg);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 30px;
  border: 1px solid var(--border-color);
  border-top: none;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.sidebar-img img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* Cards */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-header {
  background: var(--primary-color);
  color: white;
  padding: 12px 15px;
  margin: -20px -20px 20px -20px;
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

/* Forms */
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-primary);
}
.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.btn {
  display: inline-block;
  background: var(--secondary-color);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
  width: 100%;
}

.btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Table Design */
.table-responsive {
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 0.95rem;
}
.data-table th, .data-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}
.data-table th {
  background-color: #f1f5f9;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}
.data-table tbody tr:hover {
  background-color: #f8fafc;
}
.data-table a {
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: none;
}
.data-table a:hover {
  text-decoration: underline;
}

/* Footer Section */
.footer-text {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.footer-text a {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
}
.footer-text a:hover {
  color: var(--secondary-color);
}

/* Alert Boxes */
.alert {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 12px 15px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.stf-search {
  margin-top: 30px;
}
.stf-search h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

/* Responsive constraints */
@media (max-width: 900px) {
  .hero-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .hero-header .hero-subtitle {
    text-align: center;
  }
  .content-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .sidebar-img img {
    max-height: 250px;
    object-fit: cover;
  }
}
