/* assets/css/style.css */

body {
    background-color: #f0f2f5;
    font-family: 'Sarabun', sans-serif;
}

.page-title {
    font-weight: 700;
    color: #333;
}

.match-card {
    border-radius: 0.75rem;
    border: 1px solid #e9ecef;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.1) !important;
}

.match-card .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.league-logo {
    width: 20px;
    height: 20px;
}

.match-info {
    text-align: center;
}

.team-display {
    margin-bottom: 0.5rem;
}

.team-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 0.25rem;
}

.team-name {
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    min-height: 40px; 
}

.vs-display {
    margin: 0.75rem 0;
}

.vs-text {
    font-size: 1rem;
    font-weight: 700;
    color: #6c757d;
}

.match-time {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
}

.analysis-section {
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.analysis-content {
    padding: 1rem 0 0.5rem 0;
    text-align: left;
}

.doughnut-chart {
    max-height: 120px; 
}


.team-header-display {
    width: 300px; 
}

.team-header-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.team-header-name {
    font-size: 1.75rem;
    font-weight: 700;
}

.vs-header-text {
    font-size: 2.5rem;
    font-weight: 900;
    color: #dc3545;
}

.team-display-sm {
    width: 35%;
}
.team-logo-sm {
    width: 45px;
    height: 45px;
    object-fit: contain;
}
.team-name-sm {
    font-size: 0.8rem;
    font-weight: 600;
    display: block;
    min-height: 32px;
}
.score-display .final-score {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}
.score-display .match-date-sm {
    font-size: 0.75rem;
    color: #6c757d;
}
.prediction-banner {
    background-color: #e2f0d9; 
    color: #385723;
    border-radius: 0.25rem;
    padding: 0.5rem;
    font-size: 0.9rem;
    border: 1px solid #c5e0b4;
    text-align: center; 
}

.analysis-snippet {
    font-size: 0.8rem;
    color: #495057;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 1rem;
    text-align: center; 
}

.modal-content {
    background-color: #212529;
    border: 1px solid #dc3545;
    color: #f8f9fa;
}

.modal-header {
    border-bottom: 1px solid #495057;
}

.modal-footer {
    border-top: 1px solid #495057;
}

.form-control {
    background-color: #343a40;
    border: 1px solid #6c757d;
    color: #fff;
}

.form-control:focus {
    background-color: #343a40;
    border-color: #dc3545;
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.5);
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

#particles-js {
  position: fixed; 
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1; 
  background-color: #1a1a1a; 
}

.page-wrapper {
    position: relative;
    z-index: 1; 
}

body .bot-card { 
    border-radius: 1rem !important;
    border: none !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    position: relative;
    margin-top: 60px;
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

body .bot-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

body .bot-avatar-wrapper {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
}

body .bot-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

body .bot-card .card-body {
    padding-top: 70px !important; 
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

body .bot-card .card-title {
    font-weight: 700;
}

body .bot-card .card-text {
    flex-grow: 1; 
}

body .bot-card .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
}

body .bot-card .card-footer {
    background-color: #fff;
    border-top: 1px solid #f0f2f5;
}
