/* Global Styles */
:root {
  /* Core Color Palette - Baseball Data Center */
  --primary: #003049;      /* Navy Blue - primary background, conveys professionalism */
  --primary-light: #154764; /* Lighter navy for hover states */
  --primary-dark: #00263A;  /* Darker navy for active states */
  --secondary: #D62828;     /* Baseball Red - headers and important buttons */
  --secondary-light: #E74C3C; /* Lighter red for hover states */
  --secondary-dark: #C0392B; /* Darker red for active states */
  --accent: #F77F00;      /* Orange accent for highlights and calls to action */
  --accent-light: #F39C12; /* Lighter orange for hover states */
  --neutral: #EAE2B7;     /* Baseball Cream - backgrounds of secondary elements */
  --light: #F8F9FA;       /* Light background for content areas */
  --dark: #343A40;        /* Dark Gray - text color */
}

body {
    background-color: var(--light);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.login-header {
    background-color: var(--primary);
    color: white;
    padding: 2rem 1.5rem;
    text-align: center;
}

.login-body {
    padding: 2rem;
    background-color: white;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-radius: 10px 10px 0 0;
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1rem;
    background-color: var(--primary) !important;
}

.navbar-brand {
    font-weight: 700;
    color: white !important;
}

.navbar-brand img {
    height: 40px;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}

.navbar .nav-link:hover {
    color: white !important;
}

.navbar .dropdown-menu {
    background-color: var(--primary-light);
    border: none;
}

.navbar .dropdown-item {
    color: rgba(255, 255, 255, 0.85);
}

.navbar .dropdown-item:hover {
    background-color: var(--primary);
    color: white;
}

/* Forms */
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 48, 73, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

/* Buttons */
.btn-primary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--secondary-light);
    border-color: var(--secondary-light);
}

.btn-primary:active, .btn-primary:focus {
    background-color: var(--secondary-dark) !important;
    border-color: var(--secondary-dark) !important;
    box-shadow: 0 0 0 0.2rem rgba(214, 40, 40, 0.5) !important;
}

.btn-outline-primary {
    color: var(--secondary);
    border-color: var(--secondary);
    font-weight: 500;
}

.btn-outline-primary:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: white;
    font-weight: 500;
}

.btn-accent:hover {
    background-color: var(--accent-light);
    border-color: var(--accent-light);
    color: white;
}

/* Tables */
.table th {
    font-weight: 600;
    background-color: var(--primary);
    color: white;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(234, 226, 183, 0.2);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 48, 73, 0.05);
}

/* Toast Notifications */
.toast {
    opacity: 1 !important;
}

.bg-success {
    color: white !important;
}

.bg-danger {
    color: white !important;
}

.bg-warning {
    color: black !important;
}

/* Home page specific styles */
.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 50px 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--secondary);
}

.hero-section h1 {
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.feature-card {
    border-radius: 10px;
    overflow: hidden;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    color: var(--secondary);
    margin-bottom: 15px;
}

.quick-start {
    background-color: var(--neutral);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step-number {
    background-color: var(--secondary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.quick-step {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.quick-step:hover {
    transform: translateY(-5px);
}

.quick-step h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary);
}

/* Footer styling */
.footer {
    background-color: var(--primary) !important;
    color: white !important;
}

.footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Accent elements */
.accent-border {
    border-left: 4px solid var(--accent);
    padding-left: 15px;
}

.bg-neutral {
    background-color: var(--neutral);
}

.bg-primary {
    background-color: var(--primary) !important;
    color: white !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
    color: white !important;
}

.accent-text {
    color: var(--accent);
}

/* Input groups */
.input-group-text {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Alert customization */
.alert-primary {
    background-color: rgba(0, 48, 73, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.alert-secondary {
    background-color: rgba(214, 40, 40, 0.1);
    border-color: var(--secondary);
    color: var(--secondary);
}

.alert-accent {
    background-color: rgba(247, 127, 0, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

/* Analytics Page Styles */
.analytics-dashboard .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.analytics-dashboard .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-card {
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
}

.stat-card .card-header {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
}

.stat-card .card-body {
    padding: 1.5rem;
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.stat-card .stat-label {
    font-size: 1rem;
    color: var(--dark);
    opacity: 0.7;
}

/* Pitch zone heatmap styling */
.pitch-zone-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 400px;
    margin: 0 auto;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.pitch-zone {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 50px auto;
    border: 2px solid #343a40;
}

.location-cell {
    position: absolute;
    width: 100px;
    height: 100px;
    text-align: center;
    font-weight: bold;
    font-size: 24px;
    line-height: 100px;
    box-sizing: border-box;
    border: 1px solid rgba(52, 58, 64, 0.3);
}

.strike-zone-cell {
    background-color: rgba(0, 48, 73, 0.1);
}

.ball-zone-cell {
    background-color: rgba(214, 40, 40, 0.1);
}

/* Comparison styles */
.comparison-container .card {
    margin-bottom: 1.5rem;
}

.pitcher-stat {
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.pitcher1-stat {
    background-color: rgba(0, 48, 73, 0.1);
    border-left: 4px solid var(--primary);
}

.pitcher2-stat {
    background-color: rgba(214, 40, 40, 0.1);
    border-left: 4px solid var(--secondary);
}

.stat-comparison {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.better-stat {
    font-weight: bold;
    color: #28a745;
}

.worse-stat {
    color: #dc3545;
}

/* Badge customization */
.badge-primary {
    background-color: var(--primary);
}

.badge-secondary {
    background-color: var(--secondary);
}

.badge-accent {
    background-color: var(--accent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1.25rem;
    }
    
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .hero-section {
        padding: 30px 15px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .feature-card {
        margin-bottom: 20px;
    }
}

/* Profile Page Styles */
.profile-picture {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-picture-preview {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-label {
    font-weight: 600;
    color: var(--primary);
}

.info-value {
    color: var(--dark);
}

.preference-card {
    border-left: 4px solid var(--accent);
}

/* Password Strength Indicator */
.password-strength {
    height: 5px;
    margin-top: 5px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.strength-weak { 
    background-color: #dc3545; 
    width: 33%; 
}

.strength-medium { 
    background-color: #ffc107; 
    width: 66%; 
}

.strength-strong { 
    background-color: #28a745; 
    width: 100%; 
}

.requirement-met { 
    color: #28a745; 
}

.requirement-not-met { 
    color: #dc3545; 
}

/* User Dropdown Menu */
.navbar .dropdown-menu-end {
    right: 0;
    left: auto;
}

.navbar .dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Security Badge Styles */
.badge.bg-success i,
.badge.bg-danger i,
.badge.bg-warning i,
.badge.bg-secondary i {
    font-size: 0.875rem;
}

/* Team and Organization Styles */
.team-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.team-card .card-header {
    font-weight: 600;
    text-align: center;
    padding: 1rem;
}

.organization-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.organization-header h1 {
    color: white;
    margin-bottom: 0.5rem;
}

.subscription-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.plan-card {
    height: 100%;
    transition: transform 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-10px);
}

.plan-card.current {
    border: 3px solid var(--primary);
}

.plan-card.featured .card-header {
    background-color: var(--secondary);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.plan-features {
    list-style: none;
    padding: 0;
}

.plan-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.plan-features li:last-child {
    border-bottom: none;
}

/* Roster Management Styles */
.pitcher-card {
    cursor: move;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pitcher-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.pitcher-card.dragging {
    opacity: 0.5;
}

.pitcher-card.drag-over {
    border-color: var(--primary);
}

.roster-section {
    min-height: 200px;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
}

.roster-section.drag-over {
    background-color: #e9ecef;
}

.pitcher-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Progress Bars */
.progress {
    height: 8px;
    background-color: #e9ecef;
}

.progress-bar {
    background-color: var(--primary);
}

/* Quick Actions Grid */
.quick-actions .btn {
    text-align: left;
    padding: 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.quick-actions .btn i {
    font-size: 1.25rem;
    margin-right: 0.75rem;
}

/* Team Detail Page */
.team-info-card {
    border-left: 4px solid var(--primary);
}

.coach-list .list-group-item {
    border: none;
    padding: 0.75rem 0;
    background: transparent;
}

.coach-list .list-group-item + .list-group-item {
    border-top: 1px solid #e9ecef;
}