/* ===================================================================
   STUDENT & JOB SEEKER UTILITY TOOLS - STYLESHEET
   =================================================================== */

.tool-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 24px;
  margin-bottom: 30px;
}

.tool-header {
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.tool-header-title {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px 0;
}
.tool-header-desc {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* Grids & Cards */
.tool-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.tool-card-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tool-card-box:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.12);
}

/* Form Inputs */
.tool-form-group {
  margin-bottom: 18px;
}
.tool-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}
.tool-input, .tool-select, .tool-textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}
.tool-input:focus, .tool-select:focus, .tool-textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Buttons */
.tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  text-decoration: none;
}
.tool-btn:active {
  transform: scale(0.98);
}
.tool-btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
}
.tool-btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}
.tool-btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
}
.tool-btn-success:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}
.tool-btn-outline {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
}
.tool-btn-outline:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

/* Result Dashboard Box */
.tool-result-box {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
}
.tool-result-header {
  font-size: 15px;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 12px;
}
.tool-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}
.tool-stat-item {
  background: #ffffff;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.tool-stat-val {
  font-size: 20px;
  font-weight: 700;
  color: #1e3a8a;
}
.tool-stat-lbl {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Dropzone styling */
.tool-dropzone {
  border: 2px dashed #94a3b8;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.tool-dropzone:hover, .tool-dropzone.dragover {
  border-color: #2563eb;
  background: #eff6ff;
}
.tool-dropzone-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

/* Badges */
.tool-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
}
.tool-badge-green { background: #dcfce7; color: #166534; }
.tool-badge-blue { background: #dbeafe; color: #1e40af; }
.tool-badge-amber { background: #fef3c7; color: #92400e; }

/* Image Canvas & Preview */
.tool-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}
.tool-canvas-wrap {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
  max-width: 100%;
  overflow: auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Range Slider */
.tool-range {
  width: 100%;
  accent-color: #2563eb;
}

/* Tables */
.tool-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 14px;
}
.tool-table th, .tool-table td {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  text-align: left;
}
.tool-table th {
  background: #f1f5f9;
  font-weight: 600;
  color: #334155;
}

/* Print view for Resume Maker */
@media print {
  body * {
    visibility: hidden;
  }
  #resume-preview-printable, #resume-preview-printable * {
    visibility: visible;
  }
  #resume-preview-printable {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: none !important;
    border: none !important;
  }
  .no-print {
    display: none !important;
  }
}
