/* Main Tiered Subscription System Styles */
.tss-subscription-tiers {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.tss-current-status {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    border-left: 5px solid #007cba;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tss-current-status h3 {
    margin-top: 0;
    color: #2c3338;
    font-size: 24px;
}

.status-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.status-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.status-card .label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.status-card .value {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #007cba;
}

.tss-available-tiers h3 {
    color: #2c3338;
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
}

.tss-tier-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.tss-tier-box {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.tss-tier-box.tss-current-tier {
    border-color: #007cba;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.tss-tier-box.tss-current-tier::before {
    content: 'Current Plan';
    position: absolute;
    top: 15px;
    right: -30px;
    background: #007cba;
    color: white;
    padding: 5px 30px;
    font-size: 12px;
    transform: rotate(45deg);
}

.tss-tier-box h4 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #2c3338;
}

.tss-price {
    font-size: 32px;
    font-weight: bold;
    color: #007cba;
    margin-bottom: 10px;
}

.tss-limit {
    font-size: 20px;
    color: #666;
    margin-bottom: 20px;
    font-weight: 600;
}

.tss-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: left;
}

.tss-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 20px;
}

.tss-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

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

.tss-description {
    color: #888;
    margin-bottom: 25px;
    font-style: italic;
}

.tss-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tss-btn-upgrade {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
}

.tss-btn-upgrade:hover {
    background: linear-gradient(135deg, #005a87 0%, #004670 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.tss-btn-current {
    background: #6c757d;
    color: white;
    cursor: not-allowed;
}

/* Order Form Styles */
.tss-order-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin: 20px 0;
}

.tss-order-status {
    margin-bottom: 20px;
    font-size: 18px;
}

.tss-order-button {
    background: #28a745;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.tss-order-button:hover {
    background: #218838;
}

.tss-limit-reached {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
}

.tss-login-required {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
}

.tss-remaining-orders,
.tss-current-tier,
.tss-daily-usage {
    font-weight: bold;
    color: #007cba;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tss-tier-comparison {
        grid-template-columns: 1fr;
    }
    
    .status-cards {
        grid-template-columns: 1fr;
    }
    
    .tss-subscription-tiers {
        padding: 20px 15px;
    }
    
    .tss-current-status {
        padding: 20px 15px;
    }
    
    .tss-order-form {
        padding: 20px 15px;
    }
}

/* Client Dashboard Styles */
.tss-client-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tss-dashboard-header {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 5px solid #007cba;
}

.tss-dashboard-header h2 {
    margin: 0 0 10px 0;
    color: #2c3338;
    font-size: 32px;
}

.tss-user-welcome {
    color: #666;
}

.tss-user-welcome strong {
    color: #2c3338;
}

/* Dashboard Navigation */
.tss-dashboard-nav {
    display: flex;
    background: white;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tss-nav-tab {
    flex: 1;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #666;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tss-nav-tab:hover {
    background: #f8f9fa;
    color: #007cba;
}

.tss-nav-tab.active {
    color: #007cba;
    border-bottom-color: #007cba;
    background: #f8f9ff;
}

/* Dashboard Content */
.tss-dashboard-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Subscription Tab */
.tss-subscription-tab h3,
.tss-orders-tab h3,
.tss-new-order-tab h3 {
    margin-top: 0;
    color: #2c3338;
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.tss-current-subscription {
    margin-bottom: 30px;
}

.tss-subscription-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.tss-subscription-card h4 {
    margin: 0 0 20px 0;
    font-size: 20px;
}

.tss-usage-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.tss-stat {
    text-align: center;
}

.tss-stat-label {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.tss-stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
}

.tss-stat-value.tss-no-orders {
    color: #ff6b6b;
}

.tss-upgrade-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
}

.tss-upgrade-section h4 {
    margin: 0 0 20px 0;
    color: #2c3338;
}

.tss-upgrade-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tss-upgrade-option {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    text-align: center;
}

.tss-upgrade-option h5 {
    margin: 0 0 10px 0;
    color: #2c3338;
}

.tss-upgrade-option p {
    margin: 0 0 15px 0;
    color: #666;
}

/* Orders Tab */
.tss-orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.tss-orders-table th,
.tss-orders-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.tss-orders-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3338;
}

.tss-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.tss-status-pending {
    background: #fff3cd;
    color: #856404;
}

.tss-status-processing {
    background: #b8daff;
    color: #004085;
}

.tss-status-shipped {
    background: #c3e6cb;
    color: #155724;
}

.tss-status-delivered {
    background: #d4edda;
    color: #155724;
}

.tss-status-cancelled {
    background: #f5c6cb;
    color: #721c24;
}

.tss-no-orders {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* New Order Tab */
.tss-remaining-info {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    border-left: 4px solid #007cba;
}

.tss-new-order-form .tss-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tss-new-order-form select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 16px;
    background: white;
}

.tss-new-order-form select:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* Login Form Styles */
.tss-login-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.tss-login-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3338;
}

#tss-login-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#tss-login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3338;
}

#tss-login-form input[type="text"],
#tss-login-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

#tss-login-form input:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

#tss-login-form .forgetmenot {
    margin-bottom: 20px;
}

#tss-login-form .submit {
    margin-bottom: 0;
}

.tss-login-links {
    text-align: center;
    margin-top: 20px;
}

.tss-login-links a {
    color: #007cba;
    text-decoration: none;
}

.tss-login-links a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tss-dashboard-nav {
        flex-direction: column;
    }

    .tss-nav-tab {
        padding: 15px;
    }

    .tss-new-order-form .tss-form-row {
        grid-template-columns: 1fr;
    }

    .tss-usage-stats {
        grid-template-columns: 1fr;
    }

    .tss-upgrade-options {
        grid-template-columns: 1fr;
    }

    .tss-orders-table {
        font-size: 14px;
    }

    .tss-orders-table th,
    .tss-orders-table td {
        padding: 8px 10px;
    }
}

/* Logout Button Styles */
.tss-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.tss-logout-btn {
    background: #dc3545;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tss-logout-btn:hover {
    background: #c82333;
    color: white;
    text-decoration: none;
}

/* Hide register page content for logged-in users */
.tss-registration-container .tss-already-logged-in {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    max-width: 500px;
    margin: 0 auto;
}
