/* TF License Manager Styles */

.tf-license-manager-frontend {
    max-width: 800px;
    margin: 20px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tf-license-manager-frontend h3 {
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #444;
}

/* Messages */
.tf-message {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-weight: 500;
}

.tf-error {
    background-color: #fbeaea;
    color: #d63638;
    border-left: 4px solid #d63638;
}

.tf-success {
    background-color: #edf7ed;
    color: #1e8e3e;
    border-left: 4px solid #1e8e3e;
}

/* Table */
.tf-license-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 30px;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    overflow: hidden;
}

.tf-license-table th,
.tf-license-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.tf-license-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.tf-license-table tr:hover {
    background-color: #f8fafc;
}

/* Buttons */
.tf-button {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
    border: none;
    font-weight: 500;
}

.tf-edit-btn {
    background-color: #f0f9ff;
    color: #0284c7;
    border: 1px solid #bae6fd;
    margin-right: 8px;
}

.tf-edit-btn:hover {
    background-color: #0284c7;
    color: #fff;
    border-color: #0284c7;
}

.tf-delete-btn {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.tf-delete-btn:hover {
    background-color: #dc2626;
    color: #fff;
    border-color: #dc2626;
}

.tf-primary-btn {
    background-color: #0ea5e9;
    color: #fff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.tf-primary-btn:hover {
    background-color: #0284c7;
}

/* Form */
.tf-add-license-form {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.tf-add-license-form h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #444;
}

.tf-form-group {
    margin-bottom: 15px;
}

.tf-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #666;
}

.tf-form-group input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    /* Important for padding */
}

.tf-form-group input[type="text"]:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
    outline: none;
}

.tf-limit-reached {
    padding: 15px;
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    margin-top: 20px;
}