/* Personal Websites Manager Styles */

.pwm-container {
    margin: 0 auto;
}

/* Header removed as requested */

/* Error Messages */
.pwm-error {
    color: #dc2626;
    background-color: #fee2e2;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
    border-left: 4px solid #dc2626;
}

.pwm-success {
    color: #16a34a;
    background-color: #dcfce7;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
    border-left: 4px solid #16a34a;
}

/* Messages */
.pwm-messages {
    margin-bottom: 20px;
}

.pwm-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 500;
}

.pwm-alert-success {
    background-color: var(--soft-main-light);
    border: 1px solid var(--soft-main);
    color: var(--main-color);
}

.pwm-alert-error {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.pwm-error {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

/* Create Section */
.pwm-create-section {
    background: linear-gradient(135deg, var(--soft-main-light), #f8faff);
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid var(--soft-main);
    box-shadow: 0 8px 20px rgba(var(--main-color-rgb), 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pwm-create-content {
    display: flex;
    padding: 20px 20px 15px;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

@media (max-width: 768px) {
    .pwm-create-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .pwm-create-action {
        align-self: stretch;
    }
    
    .pwm-create-action #create-website-btn {
        width: 100%;
        justify-content: center;
    }
}

.pwm-create-left {
    flex: 1;
}

.pwm-create-action {
    flex-shrink: 0;
}

.pwm-create-section #create-website-btn {
    transition: all 0.4s ease;
}

/* Hover effect removed as requested */

/* Hover effect removed as requested */

.pwm-create-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--bar-gradient-start), var(--main-color));
}

.pwm-create-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 15px;
    text-align: left;
}

.pwm-create-icon {
    background-color: var(--main-color);
    border-radius: 10px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pwm-create-icon svg {
    color: white;
}

.pwm-create-title {
    flex-grow: 1;
}

.pwm-create-title h4 {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--main-color);
    line-height: 1.2;
}

.pwm-create-title p {
    margin: 0;
    font-size: 14px;
    color: var(--sec-color);
}



/* Features section */
.pwm-create-features {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

@media (max-width: 480px) {
    .pwm-create-features {
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 10px;
    }
    
    .pwm-feature {
        min-width: 75px;
        padding: 6px 10px;
    }
}

.pwm-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    min-width: 80px;
    transition: all 0.2s ease;
}

.pwm-feature:hover {
    background-color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px var(--soft-main);
}

.pwm-feature-limit {
    background-color: rgba(255, 255, 255, 0.7);
}

.pwm-feature-limit:hover {
    box-shadow: 0 3px 8px rgba(220, 38, 38, 0.1);
}

.pwm-feature-limit .pwm-feature-highlight {
    color: #dc2626;
}

.pwm-feature-highlight {
    font-size: 20px;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 3px;
}

.pwm-feature-text {
    font-size: 15px;
    color: var(--sec-color);
    font-weight: 500;
}

/* Footer info section */
.pwm-create-footer {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.6);
    border-top: 1px solid var(--soft-main);
}

.pwm-footer-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sec-color);
    font-size: 14px;
    padding-top: 8px;
}

.pwm-limit-info {
    padding-top: 10px;
    margin-top: 0;
}

.pwm-limit-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(0,0,0,0.1);
    color: var(--sec-color);
    font-size: 12px;
}

.pwm-limit-note svg {
    flex-shrink: 0;
    color: #dc2626;
    margin-top: 1px;
}

.pwm-footer-info svg {
    color: var(--main-color);
    flex-shrink: 0;
}

.pwm-limit-reached {
    background: linear-gradient(135deg, #fee2e280, #fff5f5);
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid rgba(220, 38, 38, 0.15);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pwm-limit-content {
    display: flex;
    padding: 20px 20px 15px;
    align-items: center;
    gap: 20px;
}

.pwm-limit-left {
    flex: 1;
}

/* Top gradient bar removed as requested */

.pwm-limit-icon {
    background-color: var(--main-color);
    border-radius: 10px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.pwm-limit-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 15px;
    text-align: left;
}

.pwm-limit-title h4 {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 700;
    color: #dc2626;
    line-height: 1.2;
}

.pwm-limit-title p {
    margin: 0;
    font-size: 14px;
    color: var(--sec-color);
}

/* Limit section styling */

/* Footer info section */
.pwm-limit-footer {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(220, 38, 38, 0.1);
}

/* Responsive styles */
@media (max-width: 768px) {
    .pwm-limit-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Buttons */
.pwm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.4;
    gap: 8px;
    position: relative;
    height: 42px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pwm-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pwm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.pwm-btn-primary {
    background-color: var(--main-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(var(--main-color-rgb), 0.25);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.pwm-btn-primary:hover,
.pwm-btn-primary:focus {
    background-color: var(--soft-main-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(var(--main-color-rgb), 0.3);
}

.pwm-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(var(--main-color-rgb), 0.2);
}

.pwm-btn-disabled {
    background-color: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
    box-shadow: none;
}

.pwm-btn-disabled:hover {
    background-color: #d1d5db;
    transform: none;
    box-shadow: none;
}

.pwm-btn-secondary {
    background: var(--soft-main-light);
    color: var(--sec-color);
    border: 1px solid var(--soft-main);
}

.pwm-btn-secondary:hover {
    background: var(--soft-main);
    color: var(--main-color);
}

.pwm-btn-info {
    background: var(--soft-main-light);
    color: var(--main-color);
    border: 1px solid var(--soft-main);
}

.pwm-btn-info:hover {
    background: var(--soft-main);
}

.pwm-btn-danger {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 12px 24px;
}

.pwm-btn-danger:hover {
    background: #fecaca;
}

.pwm-btn-small {
    font-size: 12px;
    padding: 4px 8px;
    height: auto;
    margin-bottom: 0px;
}

/* Set height for login and delete buttons */
.pwm-btn-primary[href*="wp-admin"] {
    height: 46px;
    white-space: nowrap;
}

.pwm-btn-danger {
    height: 42px;
    white-space: nowrap;
}

.pwm-spinner {
    font-size: 14px;
    opacity: 0.8;
}

/* Websites List */
.pwm-websites-list {
    margin-top: 30px;
}

.pwm-websites-list h4 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--sec-color);
}

.pwm-no-websites {
    text-align: center;
    padding: 40px 20px;
    background: #f9fafb;
    border-radius: 12px;
    color: #4b5563;
    font-size: 16px;
    margin-top: 20px;
    border: 1px dashed #d1d5db;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    font-weight: 500;
}

.pwm-no-websites::before {
    content: '';
    display: block;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='14' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='8' y1='21' x2='16' y2='21'%3E%3C/line%3E%3Cline x1='12' y1='17' x2='12' y2='21'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.7;
}

/* Website Cards */
.pwm-website-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Hover effect removed as requested */

.pwm-website-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.pwm-website-status-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pwm-website-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--main-color);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
}

.pwm-site-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: color 0.2s ease;
    margin-left: 4px;
}

.pwm-site-link:hover {
    color: var(--main-color);
}

.pwm-website-status, .pwm-php-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.01em;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    height: 24px;
    border: 1px solid;
}

.pwm-website-status {
    background-color: #dcfce7;
    color: #16a34a;
    border-color: #86efac;
}

.pwm-php-badge {
    background-color: #e0f2fe;
    color: #0369a1;
    border-color: #bae6fd;
}

.pwm-website-details {
    margin-bottom: 16px;
}

.pwm-detail-row {
    display: flex;
    margin-bottom: 14px;
    position: relative;
    align-items: center;
    min-height: 40px;
    justify-content: flex-end;
}

.pwm-detail-row:last-child {
    margin-bottom: 0;
}

.pwm-label {
    font-weight: 600;
    color: #64748b;
    font-size: 14px;
    flex: 0 0 120px;
    margin-right: 10px;
}

.pwm-value {
    color: #334155;
    font-size: 15px;
    flex: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* PHP Version Selector */
.pwm-php-selector {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    flex-wrap: nowrap;
    width: auto;
    margin: 0;
    flex: 1;
    max-width: 300px;
    justify-content: flex-end;
    height: 42px;
}

.pwm-php-version-select {
    flex: 1;
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    background-color: white;
    color: #334155;
    font-weight: 500;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%2364748b" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 34px;
    margin-bottom: 0px;
}

.pwm-php-version-select:hover {
    border-color: #94a3b8;
}

.pwm-php-version-select:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 2px rgba(var(--main-color-rgb), 0.2);
}

/* PHP version is now shown as a badge next to Active status */

.pwm-website-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: stretch;
}

/* Website Credentials */
.pwm-website-credentials {
    padding: 16px;
    background: var(--soft-main-light);
    border-radius: 8px;
    border: 1px solid var(--soft-main);
    margin-bottom: 16px;
}

.pwm-website-credentials h6 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.pwm-credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.pwm-credential {
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.pwm-credential label {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--main-color);
    margin-bottom: 2px;
}

.pwm-credential-value-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.pwm-credential span {
    font-family: 'Courier New', monospace;
    font-size: 15px;
    color: #1f2937;
    word-break: break-all;
    flex: 1;
    font-weight: 600;
}

.pwm-copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #64748b;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.pwm-copy-btn:hover {
    background: #e2e8f0;
    color: #334155;
}

.pwm-copy-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(var(--main-color-rgb), 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .pwm-container {
        padding: 16px;
    }
    
    .pwm-website-actions {
        flex-direction: column;
    }

    .pwm-btn {
        width: 100%;
        justify-content: center;
    }

    .pwm-credentials-grid {
        grid-template-columns: 1fr;
    }

    .pwm-detail-row {
        flex-direction: column;
        gap: 4px;
    }

    .pwm-website-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .pwm-header h3 {
        font-size: 24px;
    }
    
    .pwm-header p {
        font-size: 14px;
    }

    .pwm-website-card {
        padding: 16px;
    }
}

/* Toast Notifications */
.pwm-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.pwm-toast {
    padding: 10px 14px;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 400;
    font-size: 14px;
    animation: pwm-toast-in 0.3s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
}

.pwm-toast-success {
    background-color: #dcfce7;
    color: #16a34a;
    border-left: 4px solid #16a34a;
}

.pwm-toast-error {
    background-color: #fee2e2;
    color: #dc2626;
    border-left: 4px solid #dc2626;
}

.pwm-toast-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pwm-toast-icon svg {
    width: 16px;
    height: 16px;
}

@keyframes pwm-toast-in {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pwm-toast-out {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}