/* General Dark Mode Styling */
body, .subscription-container, .subscription-card, .all-subscriptions-table, .check-code-form {
    background-color: #000000; /* Dark background */
    color: #eee; /* Light text */
}

/* Subscription Container (for user subscriptions as cards) */
.subscription-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    /*padding: 20px;*/
}

/* Subscription Card Styling */
.subscription-card {
    background-color: #000000;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.subscription-card h3 {
    margin-top: 0;
    color: #fff;
    font-size: 1.2rem;
}

.subscription-card .details p {
    margin: 8px 0;
    color: #ccc;
}

.subscription-card .status {
    padding: 5px;
    margin-top: 10px;
    margin-bottom: 0px;
    border-radius: 4px;
    text-align: center;
}

.subscription-card .status-active {
    background-color: #4caf50;
    color: #fff;
}

.subscription-card .status-inactive {
    background-color: #f44336;
    color: #fff;
}

/* All Subscriptions Table Styling */
.all-subscriptions-table {
    background-color: #000000;
    color: #eee;
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.all-subscriptions-table th {
    background-color: #555;
    color: #fff;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #666;
}

.all-subscriptions-table td {
    padding: 12px;
    border-bottom: 1px solid #666;
}

.all-subscriptions-table tr:hover {
    background-color: #444;
}

.all-subscriptions-table tr:nth-child(even) {
    background-color: #3a3a3a;
}

.all-subscriptions-table a {
    color: #4a90e2;
    text-decoration: none;
}

.all-subscriptions-table a:hover {
    text-decoration: underline;
}

/* Code Check Layout */
.code-checker {
    max-width: 520px;
    margin: 30px auto;
    padding: 24px;
    border: 1px solid #333;
    border-radius: 10px;
    background-color: #0a0a0a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.code-check-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.code-check-form label {
    font-weight: 600;
    letter-spacing: 0.03em;
}

.code-check-form-row {
    display: flex;
    gap: 12px;
}

.code-check-form-row input[type="text"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #555;
    border-radius: 6px;
    background-color: #1c1c1c;
    color: #f1f1f1;
}

.code-check-form-row input[type="text"]::placeholder {
    color: #888;
}

.code-check-form-row button {
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #2196f3 0%, #1769aa 100%);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.code-check-form-row button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(33, 150, 243, 0.35);
}

.code-check-form-row button:active {
    transform: translateY(0);
    box-shadow: none;
}

.code-check-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.code-check-messages .notice {
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: 600;
}

.code-check-messages .notice.success {
    background-color: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: #b6f0b9;
}

.code-check-messages .notice.error {
    background-color: rgba(244, 67, 54, 0.15);
    border: 1px solid rgba(244, 67, 54, 0.35);
    color: #ffb4b0;
}

.code-check-results .subscription-card {
    margin-top: 10px;
}

.code-register-form {
    margin-top: 16px;
}

.code-register-form button {
    width: 100%;
    padding: 10px 18px;
    border: 1px solid #555;
    border-radius: 6px;
    background-color: #1f1f1f;
    color: #f1f1f1;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.code-register-form button:hover:not(:disabled) {
    background-color: #2b2b2b;
}

.code-register-form button:disabled {
    background-color: #333;
    color: #777;
    cursor: not-allowed;
}

@media (max-width: 520px) {
    .code-check-form-row {
        flex-direction: column;
    }

    .code-check-form-row button {
        width: 100%;
    }
}


/* Button Styling */
.btn.primary {
    background-color: #2196f3;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn.primary:hover {
    background-color: #0b7dda;
}

.btn.primary:disabled {
    background-color: #555;
    cursor: not-allowed;
}

/* Success and Error Messages */
.subscription-card p.success {
    color: #4caf50;
    font-weight: bold;
}

.subscription-card p.error {
    color: #f44336;
    font-weight: bold;
}

table.dataTable tbody tr {
    background-color: #222222 !important;
}

.dataTables_wrapper {
    color: white !important;
}

.dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_processing, .dataTables_wrapper .dataTables_paginate {
    color: white !important;
}

.dataTables_wrapper .dataTables_length select {
    color: white !important;
}

.dataTables_wrapper .dataTables_filter input {
    color: white !important;
}

.dataTables_wrapper {
    border: 1px solid white !important;
    padding: 1.5rem !important;
}




/* Some my custom stuff */

.dataTables_length select {
    background-color: black !important;
}