/* =================================================================
   ESTILOS BASE - MÁRMOLES DEL NERVIÓN
   Portal de Solicitudes de Presupuesto
   ================================================================= */

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: var(--font-primary, 'Helvetica Neue', Helvetica, Arial, sans-serif);
  color: var(--color-dark, #000);
  background-color: var(--bg-secondary, #f8f9fa);
  margin-bottom: 60px;
}

/* Focus Styles */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--color-accent, #D4AF37);
}

/* Form Floating Placeholders */
.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--color-primary, #1a1a1a);
}

h1 {
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
}

/* Links */
a {
  color: var(--color-primary, #1a1a1a);
  text-decoration: none;
  transition: var(--transition-fast, all 0.15s ease);
}

a:hover {
  color: var(--color-accent, #D4AF37);
}

/* Main Content */
main {
  background-color: white;
  border-radius: var(--border-radius-md, 0.375rem);
  box-shadow: var(--shadow-sm, 0 2px 4px rgba(0, 0, 0, 0.08));
  padding: 2rem;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  main {
    padding: 1rem;
    margin: 1rem 0;
  }
}

/* =================================================================
   DASHBOARD STYLES
   ================================================================= */

/* Metric Cards */
.metric-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
}

.metric-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Icon Shapes */
.icon-shape {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Avatar Circle */
.avatar-circle {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Gradient Dark Background */
.bg-gradient-dark {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Corporate Accent Color */
.btn-accent {
    background-color: #D4AF37;
    border-color: #D4AF37;
    color: #1a1a1a;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: #c4a02d;
    border-color: #c4a02d;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.border-accent {
    border-color: #D4AF37 !important;
}

/* Primary Marmoles Button */
.btn-primary-marmoles {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    color: white;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary-marmoles:hover {
    background-color: #D4AF37;
    border-color: #D4AF37;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* Bronze Color for 3rd place */
.bg-bronze {
    background-color: #cd7f32 !important;
}

/* Icon Rank Styling */
.icon-rank {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Card Hover Effects */
.card {
    transition: all 0.3s ease;
}

.card-header h5 {
    font-weight: 600;
}

/* List Group Items */
.list-group-item {
    border-left: none;
    border-right: none;
    transition: background-color 0.2s ease;
}

.list-group-item:first-child {
    border-top: none;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Activity Icons */
.fas.fa-plus-circle { color: #28a745; }
.fas.fa-edit { color: #17a2b8; }
.fas.fa-trash { color: #dc3545; }
.fas.fa-sign-in-alt { color: #007bff; }
.fas.fa-sign-out-alt { color: #6c757d; }

/* Table Styles */
.table-hover tbody tr:hover {
    background-color: rgba(212, 175, 55, 0.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .metric-value {
        font-size: 1.5rem;
    }

    .icon-shape {
        width: 40px;
        height: 40px;
    }

    .icon-shape i {
        font-size: 1.25rem !important;
    }
}