/* =========================================
   Lao Lottery Full Layout (Matches Screenshot)
   ========================================= */

.ll-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Sarabun', 'Prompt', sans-serif;
    color: #333;
}

.ll-header-section {
    position: relative;
    text-align: center;
    margin-bottom: 15px;
    padding: 0 40px; /* Space for icons */
}

.ll-header-title {
    color: #cc0000;
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0;
    display: inline-block;
}

.ll-social-share {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
}

.ll-social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.ll-social-icon:hover {
    opacity: 0.8;
}

.ll-social-icon.fb {
    background-color: #3b5998;
}

.ll-social-icon.tw {
    background-color: #000;
}

.ll-social-icon.line {
    background-color: #00c300;
}

/* Latest Draw Box */
.ll-latest-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.ll-row-top {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.ll-box-4digits {
    flex: 1;
    background: #f4f4f4;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.ll-box-animal {
    flex: 1;
    background: #f4f4f4;
    border: 1px solid #e0e0e0;
}

.ll-label {
    background: #e9e9e9;
    padding: 8px;
    font-weight: bold;
    color: #555;
    font-size: 0.9rem;
}

.ll-number-big {
    font-size: 2.5rem;
    font-weight: bold;
    padding: 10px 0;
}

.text-red {
    color: #cc0000;
}

.ll-label-animal {
    background: #e9e9e9;
    padding: 8px;
    font-weight: bold;
    text-align: center;
    color: #555;
    font-size: 0.9rem;
    border-bottom: 1px solid #e0e0e0;
}

.ll-sub-row {
    display: flex;
}

.ll-sub-box {
    flex: 1;
    text-align: center;
    border-right: 1px solid #e0e0e0;
}
.ll-sub-box:last-child {
    border-right: none;
}

.ll-label-sm {
    font-size: 0.8rem;
    color: #666;
    padding: 5px 0;
    font-weight: bold;
}

.ll-num-md {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    padding-bottom: 5px;
}

/* Development Lottery Section */
.ll-dev-box {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
}

.ll-label-dev {
    background: #e9e9e9;
    padding: 8px;
    font-weight: bold;
    text-align: center;
    color: #555;
    font-size: 0.9rem;
    border-bottom: 1px solid #e0e0e0;
}

.ll-dev-numbers {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
}

.ll-dev-num {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
}

/* Action Buttons */
.ll-actions {
    display: flex;
    gap: 10px;
}

.ll-btn-refresh {
    background: #f0ad4e;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    flex: 1;
}
.ll-btn-refresh:hover { background: #ec971f; }

.ll-btn-check {
    background: #d9534f;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    border-radius: 4px;
    flex: 2;
}
.ll-btn-check:hover { background: #c9302c; color: #fff; }

/* Past Section */
.ll-past-section {
    border-top: 1px solid #ccc;
    padding-top: 20px;
    position: relative;
}

.ll-past-title {
    text-align: center;
    color: #cc0000;
    font-size: 1.2rem;
    background: #fff;
    display: inline-block;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 15px;
    margin: 0;
}

.ll-past-item {
    background: #f4f4f4;
    border: 1px solid #e0e0e0;
    margin-top: 25px;
    margin-bottom: 15px;
}

.ll-past-link-header {
    display: block;
    background: #f4f4f4;
    padding: 10px;
    color: #cc0000;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}
.ll-past-link-header:hover { text-decoration: underline; }

.ll-past-content {
    display: flex;
}

.ll-past-left {
    flex: 1;
    display: flex;
    border-right: 1px solid #e0e0e0;
    background: #fff;
}

.ll-past-col {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    border-right: 1px solid #eee;
}
.ll-past-col:last-child { border-right: none; }

.ll-label-xs {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 5px;
}

.ll-num-sm {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.ll-past-right {
    flex: 1;
    padding: 10px;
    background: #fff;
}

.ll-past-dev-nums {
    display: flex;
    justify-content: space-between;
    padding: 5px 10px;
}
.ll-past-dev-nums span {
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
}

.ll-btn-full {
    display: block;
    width: 100%;
    background: #cc0000;
    color: #fff;
    text-align: center;
    padding: 12px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 20px;
}
.ll-btn-full:hover { background: #a00000; color: #fff; }

@media (max-width: 600px) {
    .ll-row-top { flex-direction: column; }
    .ll-past-content { flex-direction: column; }
    .ll-past-left { border-right: none; border-bottom: 1px solid #e0e0e0; }
}
