/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f3f2f1;
}

.ms-Fabric {
    color: #323130;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
}

/* Welcome Header */
.ms-welcome {
    background-color: #ffffff;
    height: 100vh;
    overflow-y: auto;
}

.ms-welcome__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
    color: white;
}

.ms-welcome__header h1 {
    margin: 10px 0 5px 0;
    font-weight: 300;
    color: white;
}

.ms-welcome__header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

/* Main Content */
.ms-welcome__main {
    padding: 0;
}

.padding {
    padding: 20px;
}

/* Email Section */
.email-section {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.email-section h3 {
    margin-top: 0;
    color: #323130;
    border-bottom: 2px solid #0078d4;
    padding-bottom: 10px;
}

#email-details {
    line-height: 1.6;
}

#email-details p {
    margin: 8px 0;
    word-wrap: break-word;
}

#email-details strong {
    color: #0078d4;
}

/* Action Section */
.action-section {
    text-align: center;
    margin: 20px 0;
}

/* Button Styles */
.ms-Button {
    background-color: #0078d4;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    transition: background-color 0.2s ease;
    min-width: 200px;
}

.ms-Button:hover {
    background-color: #106ebe;
}

.ms-Button:disabled {
    background-color: #a19f9d;
    cursor: not-allowed;
}

.ms-Button-label {
    display: inline-block;
}

/* Analysis Section */
.analysis-section {
    background: white;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.analysis-section h3 {
    margin-top: 0;
    color: #323130;
    border-bottom: 2px solid #0078d4;
    padding-bottom: 10px;
}

/* Results Styles */
.result-safe {
    background-color: #dff6dd;
    border-left: 4px solid #107c10;
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
}

.result-warning {
    background-color: #fff4ce;
    border-left: 4px solid #ff8c00;
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
}

.result-danger {
    background-color: #fde7e9;
    border-left: 4px solid #d13438;
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
}

.result-icon {
    font-size: 24px;
    margin-right: 10px;
    vertical-align: middle;
}

.result-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.result-description {
    line-height: 1.6;
    margin-bottom: 10px;
}

.result-details {
    font-size: 14px;
    opacity: 0.8;
}

/* Loading Section */
.loading-section {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0078d4;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 480px) {
    .padding {
        padding: 10px;
    }
    
    .ms-welcome__header {
        padding: 15px;
    }
    
    .email-section,
    .analysis-section {
        padding: 15px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.margin-top {
    margin-top: 20px;
}

.hidden {
    display: none !important;
}
