/* Frontend Styles for AdSense Approval Analyzer */
.aaa-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.aaa-header {
    text-align: center;
    margin-bottom: 30px;
}

.aaa-header h1 {
    margin: 0 0 10px 0;
    color: #23282d;
}

.aaa-header p {
    margin: 0;
    color: #666;
}

.aaa-form-group {
    margin-bottom: 20px;
}

.aaa-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #23282d;
}

.aaa-form-group input[type="text"],
.aaa-form-group input[type="email"],
.aaa-form-group input[type="url"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 16px;
}

.aaa-form-group input[type="checkbox"] {
    margin-right: 5px;
}

.aaa-form-group .description {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.aaa-form-actions {
    text-align: center;
    margin-top: 30px;
}

.aaa-button {
    padding: 12px 24px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.aaa-button:hover {
    background: #005a87;
}

.aaa-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.aaa-loading {
    display: none;
    text-align: center;
    margin: 20px 0;
}

.aaa-loading.active {
    display: block;
}

.aaa-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: aaa-spin 1s ease-in-out infinite;
}

@keyframes aaa-spin {
    to { transform: rotate(360deg); }
}

/* Progress Container */
.aaa-progress-container {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #e5e5e5;
}

.aaa-progress-header {
    text-align: center;
    margin-bottom: 20px;
}

.aaa-progress-header h3 {
    margin: 0 0 10px 0;
    color: #23282d;
}

.aaa-progress-header p {
    margin: 0;
    color: #666;
}

.aaa-progress-bar-container {
    margin-bottom: 30px;
}

.aaa-progress-bar {
    width: 100%;
    height: 20px;
    background: #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.aaa-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    width: 0%;
    transition: width 0.3s ease;
}

.aaa-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.aaa-progress-steps {
    margin-bottom: 20px;
}

.aaa-progress-steps-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.aaa-progress-step {
    padding: 15px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
}

.aaa-progress-step.pending {
    opacity: 0.6;
}

.aaa-progress-step.in-progress {
    border-color: #0073aa;
    box-shadow: 0 0 10px rgba(0, 115, 170, 0.2);
}

.aaa-progress-step.completed {
    border-color: #46b450;
    background: #f8fdf8;
}

.aaa-progress-step.failed {
    border-color: #dc3232;
    background: #fdf8f8;
}

.aaa-step-number {
    width: 30px;
    height: 30px;
    background: #e5e5e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    color: #666;
}

.aaa-progress-step.in-progress .aaa-step-number {
    background: #0073aa;
    color: #fff;
}

.aaa-progress-step.completed .aaa-step-number {
    background: #46b450;
    color: #fff;
}

.aaa-progress-step.failed .aaa-step-number {
    background: #dc3232;
    color: #fff;
}

.aaa-step-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: #23282d;
}

.aaa-step-status {
    font-size: 12px;
    color: #666;
}

.aaa-progress-info {
    text-align: center;
    color: #666;
    font-size: 14px;
}

.aaa-results {
    display: none;
    margin-top: 30px;
}

.aaa-results.active {
    display: block;
}

.aaa-score-container {
    text-align: center;
    margin-bottom: 30px;
}

.aaa-score-circle {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    position: relative;
}

.aaa-score-circle svg {
    transform: rotate(-90deg);
}

.aaa-score-circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 10;
}

.aaa-score-circle-fill {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

.aaa-score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
}

.aaa-score-label {
    font-size: 16px;
    color: #666;
}

.aaa-score-high .aaa-score-circle-fill {
    stroke: #46b450;
}

.aaa-score-high .aaa-score-text {
    color: #46b450;
}

.aaa-score-medium .aaa-score-circle-fill {
    stroke: #ffb900;
}

.aaa-score-medium .aaa-score-text {
    color: #ffb900;
}

.aaa-score-low .aaa-score-circle-fill {
    stroke: #dc3232;
}

.aaa-score-low .aaa-score-text {
    color: #dc3232;
}

.aaa-checks-container {
    margin-top: 30px;
}

.aaa-check-item {
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 5px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
}

.aaa-check-item.pass {
    border-left: 4px solid #46b450;
}

.aaa-check-item.warning {
    border-left: 4px solid #ffb900;
}

.aaa-check-item.fail {
    border-left: 4px solid #dc3232;
}

.aaa-check-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.aaa-check-name {
    font-weight: bold;
    font-size: 16px;
}

.aaa-check-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.aaa-check-item.pass .aaa-check-status {
    background: #46b450;
    color: #fff;
}

.aaa-check-item.warning .aaa-check-status {
    background: #ffb900;
    color: #fff;
}

.aaa-check-item.fail .aaa-check-status {
    background: #dc3232;
    color: #fff;
}

.aaa-check-details {
    margin-bottom: 10px;
    color: #666;
}

.aaa-check-recommendation {
    padding: 10px;
    background: #f1f1f1;
    border-radius: 3px;
    font-size: 14px;
}

.aaa-recommendations {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #e5e5e5;
}

.aaa-recommendations h3 {
    margin-top: 0;
    color: #23282d;
}

.aaa-recommendations ul {
    margin: 0;
    padding-left: 20px;
}

.aaa-recommendations li {
    margin-bottom: 10px;
}

.aaa-error-message {
    padding: 15px;
    background: #ffebe8;
    border: 1px solid #c00;
    border-radius: 3px;
    color: #c00;
    margin-bottom: 20px;
}

.aaa-tab-container {
    margin-top: 30px;
}

.aaa-tabs {
    display: flex;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 20px;
}

.aaa-tab {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.3s ease;
}

.aaa-tab:hover {
    background: #f9f9f9;
}

.aaa-tab.active {
    border-bottom-color: #0073aa;
    color: #0073aa;
    font-weight: bold;
}

.aaa-tab-content {
    display: none;
}

.aaa-tab-content.active {
    display: block;
}

.aaa-code-block {
    background: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 15px;
    font-family: monospace;
    white-space: pre-wrap;
    max-height: 300px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.4;
}

.aaa-details-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.aaa-details-table th,
.aaa-details-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.aaa-details-table th {
    background: #f9f9f9;
    font-weight: bold;
}

.aaa-status-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.aaa-status-pass {
    background: #46b450;
    color: #fff;
}

.aaa-status-warning {
    background: #ffb900;
    color: #fff;
}

.aaa-status-fail {
    background: #dc3232;
    color: #fff;
}

.aaa-collapsible-header {
    cursor: pointer;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aaa-collapsible-header:hover {
    background: #f1f1f1;
}

.aaa-collapsible-icon {
    transition: transform 0.3s ease;
}

.aaa-collapsible-icon.aaa-icon-expanded {
    transform: rotate(180deg);
}

.aaa-collapsible-content {
    padding: 15px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-top: none;
    border-radius: 0 0 3px 3px;
    display: none;
}

@media screen and (max-width: 600px) {
    .aaa-container {
        padding: 15px;
    }
    
    .aaa-button {
        width: 100%;
    }
    
    .aaa-progress-steps-list {
        grid-template-columns: 1fr;
    }
    
    .aaa-tabs {
        flex-wrap: wrap;
    }
    
    .aaa-tab {
        flex: 1 1 50%;
        text-align: center;
    }
}