/* Public Portal Styles */
/* Portal Filters */
.gstip-portal-filters {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Auth Container */
.gstip-auth-container {
    max-width: 500px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.gstip-auth-message {
    text-align: center;
    margin-bottom: 25px;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 8px;
    color: #1565c0;
}

.gstip-auth-message p {
    margin: 0;
    font-size: 14px;
}

/* Auth Tabs */
.gstip-auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
}

.gstip-tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
}

.gstip-tab-btn:hover {
    color: #2196f3;
}

.gstip-tab-btn.active {
    color: #2196f3;
    border-bottom-color: #2196f3;
}

/* Tab Content */
.gstip-tab-content {
    display: none;
}

.gstip-tab-content.active {
    display: block;
}

/* Auth Form */
.gstip-auth-form {
    margin-top: 20px;
}

.gstip-form-group {
    margin-bottom: 20px;
}

.gstip-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.gstip-form-group input[type="text"],
.gstip-form-group input[type="email"],
.gstip-form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.gstip-form-group input:focus {
    outline: none;
    border-color: #2196f3;
}

.gstip-form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.gstip-form-group.gstip-checkbox {
    display: flex;
    align-items: center;
}

.gstip-form-group.gstip-checkbox label {
    margin: 0;
    margin-left: 8px;
    font-weight: normal;
}

.gstip-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.gstip-btn-primary {
    background: #2196f3;
    color: #fff;
}

.gstip-btn-primary:hover {
    background: #1976d2;
}

.gstip-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.gstip-form-footer {
    text-align: center;
    margin-top: 15px;
}

.gstip-form-footer a {
    color: #2196f3;
    text-decoration: none;
}

.gstip-form-footer a:hover {
    text-decoration: underline;
}

/* Messages */
.gstip-message {
    padding: 12px 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.gstip-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.gstip-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.gstip-portal-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.gstip-portal-message.error {
    background: #fee;
    color: #c00;
    border-left: 4px solid #c00;
}

.gstip-portal-message.info {
    background: #e3f2fd;
    color: #0d47a1;
    border-left: 4px solid #0d47a1;
}

.gstip-portal-message.success {
    background: #def7ec;
    color: #03543f;
    border-left: 4px solid #03543f;
}

.gstip-client-portal {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.gstip-client-portal h3 {
    margin-bottom: 20px;
    color: #333;
}

.gstip-portal-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.gstip-portal-table th,
.gstip-portal-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.gstip-portal-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.gstip-portal-table tr:hover {
    background: #f9fafb;
}

.gstip-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
}

.status-paid {
    background: #def7ec;
    color: #03543f;
}

.status-unpaid {
    background: #fde8e8;
    color: #c53030;
}

.status-partial {
    background: #fef3c7;
    color: #92400e;
}

.gstip-button {
    display: inline-block;
    padding: 6px 12px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background 0.2s;
}

.gstip-button:hover {
    background: #1d4ed8;
    color: #fff;
}

/* Dashboard Stat Cards */
.gstip-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.gstip-stat-card {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gstip-stat-card h4 {
    margin: 0 0 8px 0;
    font-size: 0.85em;
    font-weight: 500;
    opacity: 0.9;
}

.gstip-stat-card .stat-value {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 5px;
}

.gstip-stat-card small {
    font-size: 0.75em;
    opacity: 0.8;
}

.gstip-stat-card.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.gstip-stat-card.success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
}

.gstip-stat-card.warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}

/* Filter Notice */
.gstip-filter-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9em;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .gstip-dashboard-cards {
        grid-template-columns: 1fr;
    }

    .gstip-portal-table {
        font-size: 0.9em;
    }

    .gstip-portal-table th,
    .gstip-portal-table td {
        padding: 8px 10px;
    }
}