/* Office Add-in Task Pane CSS */

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.ms-welcome {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    min-height: 100vh;
}

.ms-welcome__header {
    min-height: 250px;
    padding: 20px;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #2f5f8f;
    color: white;
}

.ms-welcome__header img {
    width: 90px;
    height: 90px;
    margin-bottom: 20px;
}

.ms-welcome__header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 300;
}

.ms-welcome__header p {
    margin: 10px 0 0 0;
    font-size: 14px;
    text-align: center;
}

.ms-welcome__main {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    flex: 1 0 0;
    padding: 20px;
    background: #f3f2f1;
}

.ms-welcome__features {
    width: 100%;
    max-width: 500px;
}

.instruction-section {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.instruction-section h3 {
    margin: 0 0 15px 0;
    color: #323130;
    font-size: 18px;
    font-weight: 600;
}

.instruction-examples {
    margin: 10px 0;
    padding-left: 20px;
    color: #605e5c;
}

.instruction-examples li {
    margin: 5px 0;
    font-family: 'Courier New', monospace;
    background: #f8f8f8;
    padding: 4px 8px;
    border-radius: 4px;
}

#redline-instructions {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    border: 1px solid #d2d0ce;
    border-radius: 4px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    resize: vertical;
    box-sizing: border-box;
}

#redline-instructions:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 1px #0078d4;
}

.ms-Button {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    padding: 8px 20px;
    border: 1px solid transparent;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.1s ease;
    background: #f3f2f1;
    color: #323130;
}

.ms-Button--primary {
    background: #0078d4;
    border-color: #0078d4;
    color: white;
}

.ms-Button--primary:hover {
    background: #106ebe;
    border-color: #106ebe;
}

.ms-Button--large {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
}

.ms-Button:disabled {
    background: #f3f2f1;
    border-color: #d2d0ce;
    color: #a19f9d;
    cursor: not-allowed;
}

.status-message {
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
    font-size: 14px;
    min-height: 20px;
}

.status-message.success {
    background: #dff6dd;
    border: 1px solid #0e7c0e;
    color: #0e7c0e;
}

.status-message.error {
    background: #fde7e9;
    border: 1px solid #d83b01;
    color: #d83b01;
}

.status-message.info {
    background: #e6f3ff;
    border: 1px solid #0078d4;
    color: #0078d4;
}

.results-area {
    min-height: 40px;
    padding: 12px;
    background: #f8f8f8;
    border-radius: 4px;
    border: 1px solid #e1dfdd;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    white-space: pre-wrap;
}

.ms-font-xxl {
    font-size: 28px;
    font-weight: 100;
}

.ms-font-xl {
    font-size: 21px;
}

.ms-font-l {
    font-size: 17px;
}

.ms-font-s {
    font-size: 12px;
}

.ms-fontColor-neutralPrimary {
    color: #323130;
}

.ms-bgColor-neutralLighter {
    background-color: #f3f2f1;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0078d4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 480px) {
    .ms-welcome__header {
        min-height: 200px;
        padding: 15px;
    }
    
    .ms-welcome__main {
        padding: 15px;
    }
    
    .instruction-section {
        padding: 15px;
    }
}