* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
}

/* Login Screen */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.login-container h1 {
    color: #333;
    margin-bottom: 10px;
}

.login-container p {
    color: #666;
    margin-bottom: 20px;
}

.login-container input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
  }

  .login-container input:focus {
    border-color: #4caf50;
    outline: none;
  }

.login-container button {
  width: 100%;
  padding: 12px;
  background: #4caf50;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 6px;
}

.login-container button:hover { 
    background: #388e3c; 
}

.help-text {
    margin-top: 20px;
    font-size: 14px;
    color: #999;
}

/* Workspace Screen */
#workspaceScreen {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.header {
    background: #2196f3;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info h2 {
    font-size: 20px;
}

.student-id {
    font-size: 14px;
    opacity: 0.8;
}

#logoutBtn {
    padding: 8px 20px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid white;
    border-radius: 5px;
    cursor: pointer;
}

/* Quota Bar */
.quota-bar {
    background: white;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
}

.quota-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.quota-visual {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.quota-progress {
    height: 100%;
    background: #4caf50;
    transition: width 0.3s, background 0.3s;
}

/* Current File Area */
.current-file {
    background: white;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-name-input {
    flex: 1;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    margin-right: 10px;
}

.file-actions {
    display: flex;
    gap: 10px;
}

.file-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

#saveBtn {
    background: #4caf50;
    color: white;
}

#newBtn {
    background: #2196f3;
    color: white;
}

.help-btn {
    background: #ff9800;
    color: white;
}

/* Blockly Workspace */
.blockly-workspace {
    flex: 1;
    background: white;
    margin: 10px;
    border-radius: 5px;
    overflow: hidden;
}

/* File List Panel */
.file-list-panel {
    background: white;
    padding: 20px;
    margin: 10px;
    border-radius: 5px;
    max-height: 300px;
    overflow-y: auto;
}

.file-list-panel h3 {
    margin-bottom: 15px;
}

.file-card {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #2196f3;
}

.file-info h4 {
    margin-bottom: 5px;
    color: #333;
}

.file-meta {
    font-size: 12px;
    color: #999;
}

.file-actions {
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 6px 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    background: #2196f3;
    color: white;
    font-size: 12px;
}

.btn-danger {
    background: #f44336;
}

.no-files {
    text-align: center;
    color: #999;
    padding: 20px;
}

/* Status Message */
.status-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    display: none;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.status-message.success {
    background: #4caf50;
}

.status-message.error {
    background: #f44336;
}

.status-message.info {
    background: #2196f3;
}

/* Share button styling */
.file-actions button:nth-child(3) {
    background: #ff9800;
    color: white;
}

.file-actions button:nth-child(3):hover {
    background: #f57c00;
}