/* css/plans.css */

.plans-page {
    padding: 2rem 5%;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto 5rem;
}

.plans-page h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    padding-top: 1rem;
}

.plans-page p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: #fff;
}

.plans-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Ensure table doesn't get too squashed on small screens */
}

.plans-table th,
.plans-table td {
    padding: 1.2rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.plans-table th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.plans-table tr:last-child td {
    border-bottom: none;
}

.plans-table tr:hover {
    background-color: #f1f1f1;
}

/* Specific column styles */
.plans-table td:first-child {
    font-weight: bold;
    color: #333;
}

.plans-table td:nth-child(2) {
    color: #007bff;
    font-weight: bold;
}

.plans-table td:nth-child(3) {
    color: #28a745;
}

/* Button styles */
.btn-disabled {
    background-color: #ccc;
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: not-allowed;
    font-size: 0.9rem;
    box-shadow: none;
    transition: background-color 0.3s ease;
}

.btn-disabled:disabled {
    opacity: 0.7;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .plans-page {
        padding: 5rem 5% 2rem;
    }

    .plans-table thead {
        display: none; /* Hide header on mobile if switching to card view */
    }

    .plans-table, .plans-table tbody, .plans-table tr, .plans-table td {
        display: block;
        width: 100%;
    }

    .plans-table tr {
        margin-bottom: 1.5rem;
        border: 1px solid #eee;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        background: #fff;
        overflow: hidden;
    }

    .plans-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px solid #eee;
    }

    .plans-table td:last-child {
        border-bottom: none;
        text-align: center;
        padding-left: 1.2rem; /* Reset padding for button */
    }

    .plans-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 1.2rem;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #555;
    }
    
    .table-container {
        box-shadow: none;
        background: transparent;
    }
}
