/* Windows 7 style rounded borders and /* Radio player window */
.radio-player-window {
  width: 800px !important;
  height: 700px !important; /* Much larger size as requested */
  overflow: hidden;
  resize: none !important; /* Explicitly prevent resizing */
}

.radio-player-container {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: calc(100% - 30px);
}*/
.window {
  border-radius: 8px !important;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3),
              0 0 20px rgba(0, 0, 0, 0.1),
              inset 0 0 1px 1px rgba(255, 255, 255, 0.6) !important;
  border: 1px solid rgba(0, 122, 204, 0.6) !important;
  position: relative;
  overflow: hidden;
}

.window::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(to bottom, 
    rgba(255, 255, 255, 0.3) 0%, 
    rgba(255, 255, 255, 0.2) 50%, 
    rgba(255, 255, 255, 0.1) 100%);
  pointer-events: none;
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
}

/* Email form window */
.email-form-window {
  width: 900px !important;
  height: 800px !important; /* Much larger size as requested */
  overflow: hidden;
  resize: none !important; /* Explicitly prevent resizing */
}

.email-form-window .window-body {
  height: calc(100% - 30px);
  overflow-y: auto;
}

/* Playlist window */
.radio-player-window {
  width: 500px !important;
  max-height: 600px;
  overflow: hidden;
}

.radio-player-container {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: calc(100% - 30px);
}

/* EDM player window */
.edm-player-window {
  width: 1000px !important;
  height: 900px !important; /* Much larger size as requested */
  overflow: hidden;
  resize: none !important; /* Explicitly prevent resizing */
}

.edm-player-container {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: calc(100% - 30px);
}

.video-container {
  width: 100%;
  height: 600px; /* Much larger video container for bigger window */
  background-color: #000;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Maximize state adjustments for video */
.window.maximized .video-container {
  height: calc(70% - 30px);
}

#edm-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0;
}

.video-btn {
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edm-station-info {
  display: flex;
  flex-direction: row;
  gap: 15px;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid #d1d1d1;
  border-radius: 3px;
  background-color: #f9f9f9;
}

.edm-logo {
  flex: 0 0 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edm-logo img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
}

.edm-details {
  flex: 1;
}

/* Update RSS window dimensions */
.rss-feed-window, .rss-window {
  width: 1200px !important; /* Double the width (was 600px) */
  height: 1200px !important; /* Double the height (was 600px) */
  max-height: 90vh;
  overflow: hidden;
  resize: none !important; /* Prevent resizing as requested */
}

.rss-container, .rss-feed-container {
  max-height: calc(90vh - 30px);
  height: calc(1200px - 60px); /* Adjusted for larger window */
  overflow-y: auto;
  padding: 15px; /* Increased padding */
  font-size: 1.1em; /* Larger text for better readability in larger window */
}

/* Increase space between news items for better readability */
.news-item {
  margin-bottom: 20px;
  padding: 15px;
  border-bottom: 1px solid #ddd;
}

/* Dialog overlay - to fix issues with multiple windows */
.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 9000;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
}

/* Adding glass effect to buttons */
button {
  position: relative;
  overflow: hidden;
}

button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 100%);
  pointer-events: none;
}

/* Add more glass to fieldsets */
fieldset {
  position: relative;
  overflow: hidden;
}

fieldset::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 15px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 100%);
  pointer-events: none;
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
}

/* Improve the progress bar to look more Windows 7 like */
.win7-progress-green {
  height: 100%;
  background: linear-gradient(to bottom, 
    #75e46b 0%, 
    #4cc242 45%, 
    #3baf30 55%, 
    #60d056 100%) !important;
  background-size: 30px 100% !important;
  box-shadow: 0 0 3px rgba(0,180,0,0.3), inset 0 1px 2px rgba(255,255,255,0.7) !important;
  position: relative;
}

/* Adding animation to make it look like it's moving */
.win7-progress-green::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, 
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.3) 50%,
    rgba(255,255,255,0) 100%);
  animation: progress-shine 2s linear infinite;
  background-size: 200% 100%;
}

@keyframes progress-shine {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
