/* assets/css/admin.css */
.byteplugs-login-settings {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0;
}

.settings-header {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-bottom: 0;
    padding: 20px;
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-section img {
    height: 40px;
    width: auto;
}

.settings-header h1 {
    margin: 0;
    padding: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1d2327;
    line-height: 1.3;
}

.settings-card {
    background: #fff;
    border: 1px solid #e2e4e7;
    padding: 25px;
    margin-bottom: 0;
}

.settings-card + .settings-card {
    border-top: 0;
}

.settings-card:last-of-type {
    margin-bottom: 20px;
}

.settings-card h2 {
    margin: 0 0 20px;
    padding: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
}

/* Template Grid Fixes */
.template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0;
    padding: 0;
}

.template-card {
    border: 2px solid #e2e4e7;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.template-card:hover {
    border-color: #2271b1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.template-card.selected {
    border-color: #2271b1;
    background-color: #f0f6fc;
}

.template-card img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #e2e4e7;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.template-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.template-info h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

.template-info p {
    margin: 0 0 15px;
    color: #646970;
    font-size: 13px;
    flex-grow: 1;
}

.template-select {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #2271b1;
    cursor: pointer;
    margin-top: auto;
}

/* Color Settings */
.color-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.color-option {
    margin-bottom: 20px;
}

.color-option label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1d2327;
}

.color-option .wp-picker-container {
    display: block;
    margin-bottom: 8px;
}

.color-option .description {
    margin: 8px 0 0;
    color: #646970;
    font-size: 12px;
}

/* Submit Button */
.submit {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-top: 0;
    padding: 20px;
    border-radius: 0 0 4px 4px;
    margin: 0;
}

/* Mobile Responsiveness */
@media screen and (max-width: 1200px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 782px) {
    .byteplugs-login-settings {
        margin: 10px;
    }

    .settings-header {
        flex-direction: column;
        text-align: center;
    }

    .logo-section {
        margin: 0 0 15px;
    }

    .template-grid {
        grid-template-columns: 1fr;
    }

    .color-settings {
        grid-template-columns: 1fr;
    }
}

/* RTL Support */
.rtl .logo-section {
    margin-right: 0;
    margin-left: 20px;
}

.rtl .template-select {
    margin-right: 0;
    margin-left: auto;
}