body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0078D7; /* Windows blue background */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.rdp-window {
    width: 500px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 5px;
    overflow: hidden;
}

.rdp-header {
    background-color: #e1e1e1;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;
    cursor: default;
}

.rdp-title {
    font-weight: bold;
    font-size: 14px;
}

.rdp-buttons {
    display: flex;
}

.rdp-buttons span {
    position: relative;
    width: 45px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.rdp-buttons span:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.rdp-btn.minimize::before {
    content: '';
    width: 10px;
    height: 1px;
    background-color: #000;
}

.rdp-btn.maximize::before {
    content: '';
    width: 10px;
    height: 10px;
    border: 1px solid #000;
    box-sizing: border-box;
}

.rdp-btn.close::before,
.rdp-btn.close::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 1px;
    background-color: #000;
    transition: background-color 0.2s ease;
}

.rdp-btn.close::before {
    transform: rotate(45deg);
}

.rdp-btn.close::after {
    transform: rotate(-45deg);
}

.rdp-btn.close:hover {
    background-color: #e81123;
}

.rdp-btn.close:hover::before,
.rdp-btn.close:hover::after {
    background-color: #fff;
}

.rdp-body {
    padding: 20px;
}

.rdp-body h2 {
    margin-top: 0;
    font-size: 20px;
    color: #005a9e;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    box-sizing: border-box;
}

.rdp-footer {
    text-align: right;
    margin-top: 20px;
}

.connect-btn, .cancel-btn {
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

.connect-btn {
    background-color: #0078d7;
    color: white;
    border-color: #0078d7;
}

.connect-btn:hover {
    background-color: #005a9e;
}

.cancel-btn {
    background-color: #f0f0f0;
}

.cancel-btn:hover {
    background-color: #e1e1e1;
}

/* Notification styles */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.notification-box {
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    width: 400px;
    border-radius: 3px;
}

.notification-header {
    background-color: #f0f0f0;
    padding: 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ccc;
}

.notification-header .close-notification {
    cursor: pointer;
}

.notification-body {
    padding: 20px;
    text-align: center;
}

.notification-body p {
    margin: 0 0 20px 0;
    font-size: 16px;
}

.ok-btn {
    padding: 8px 30px;
    background-color: #0078d7;
    color: white;
    border: 1px solid #0078d7;
    border-radius: 3px;
    cursor: pointer;
}

.ok-btn:hover {
    background-color: #005a9e;
}

/* Connecting status styles */
.connecting-overlay {
    position: absolute;
    top: 50px; /* Below header */
    left: 0;
    width: 100%;
    height: calc(100% - 50px);
    background-color: rgba(240, 240, 240, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #0078d7;
    animation: spin 1s ease infinite;
    margin-bottom: 15px;
}

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

.connecting-overlay p {
    font-size: 16px;
    color: #333;
}

/* Window Control Styles */
.rdp-window.minimized .rdp-body {
    display: none;
}

.rdp-window.maximized {
    width: 100vw;
    height: 100vh;
    top: 0 !important;
    left: 0 !important;
    border-radius: 0;
    transition: width 0.2s ease-in-out, height 0.2s ease-in-out;
}
