/* Base styles */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
    background-color: #f3f2f1;
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Header styles */
.header {
    background-color: white;
    padding: 12px 0;
    text-align: center;
    border-bottom: 1px solid #edebe9;
    flex-shrink: 0;
}

.logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container img {
    width: 100%;
}

/* Navigation bar */
.nav-bar {
    display: flex;
    background-color: white;
    border-bottom: 1px solid #edebe9;
    padding: 0;
    margin: 0;
    overflow: hidden;
    flex-shrink: 0;
}

.nav-tab {
    flex: 1;
    padding: 10px 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #605e5c;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.1s ease;
    position: relative;
}

.nav-tab .ms-Icon {
    margin-right: 8px;
    font-size: 16px;
}

.nav-tab:hover {
    background-color: #f3f2f1;
    color: #0078d4;
}

.nav-tab.active {
    color: #0078d4;
    font-weight: 600;
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0078d4;
}

/* Main content */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* Content sections */
.content-section {
    display: none;
    animation: fadeIn 0.3s ease forwards;
}

.content-section.active {
    display: block;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.section-header .ms-Icon {
    font-size: 20px;
    margin-right: 8px;
    color: #0078d4;
}

.section-content {
    padding: 0 4px;
}

/* Message bar */
.ms-MessageBar {
    padding: 8px 12px;
    background-color: #f0f6ff;
    border-radius: 4px;
    margin-bottom: 16px;
    display: flex;
}

.ms-MessageBar--info {
    border-left: 4px solid #0078d4;
}

.ms-MessageBar-content {
    display: flex;
    align-items: center;
}

.ms-MessageBar-content .ms-Icon {
    color: #0078d4;
    font-size: 16px;
    margin-right: 8px;
}

.ms-MessageBar-text {
    font-size: 12px;
    color: #323130;
}

/* Button group */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

/* Button styles */
.ms-Button {
    border: none;
    border-radius: 4px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: 100%;
    transition: all 0.15s ease;
    position: relative;
    overflow: hidden;
}

.ms-Button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    transition: all 0.2s ease;
}

.ms-Button:hover::before {
    background-color: rgba(0, 0, 0, 0.1);
}

.ms-Button:active {
    transform: scale(0.98);
}

.ms-Button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.ms-Button-icon .ms-Icon {
    font-size: 16px;
}

.ms-Button-label {
    font-size: 14px;
    font-weight: 600;
}

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

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

.ms-Button--danger {
    background-color: #d13438;
    color: white;
}

.ms-Button--danger:hover {
    background-color: #ba2d32;
}

/* Mail preview */
.mail-preview {
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 16px;
}

.preview-header {
    display: flex;
    align-items: center;
    background-color: #f3f2f1;
    padding: 8px 12px;
    border-bottom: 1px solid #edebe9;
}

.preview-header .ms-Icon {
    font-size: 16px;
    color: #605e5c;
    margin-right: 8px;
}

.preview-content {
    padding: 12px;
    min-height: 80px;
}

/* Footer */
.footer {
    background-color: white;
    padding: 8px 16px;
    border-top: 1px solid #edebe9;
    flex-shrink: 0;
}

.footer-content {
    text-align: center;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ms-motion-fadeIn {
    animation: fadeIn 0.3s ease forwards;
}

.ms-motion-slideUpIn {
    animation: slideUpIn 0.3s ease forwards;
}

@keyframes slideUpIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ms-motion-scaleUpIn {
    animation: scaleUpIn 0.3s ease forwards;
}

@keyframes scaleUpIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .button-group {
        flex-direction: column;
    }
}