/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 400px;
    width: 100%;
    z-index: 10;
    color: #333;
}

.login-card * {
    color: #333 !important;
}

.logo-section {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-section i {
    font-size: 3rem;
    color: #2a5298;
    margin-bottom: 1rem;
}

.logo-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.logo-section p {
    color: #666;
    font-size: 1.1rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #333;
}

/* Direct input styling without icons */
.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff !important;
    color: #333 !important;
    -webkit-text-fill-color: #333 !important;
    text-shadow: none !important;
}

/* Force input text to be visible */
input[type="text"], input[type="password"] {
    color: #333 !important;
    background: #fff !important;
    -webkit-text-fill-color: #333 !important;
}

#username, #password {
    color: #333 !important;
    background: #fff !important;
    -webkit-text-fill-color: #333 !important;
}

.input-group input::-webkit-input-placeholder {
    color: #999 !important;
}

.input-group input::-moz-placeholder {
    color: #999 !important;
}

.input-group input:-ms-input-placeholder {
    color: #999 !important;
}

.input-group input::placeholder {
    color: #999 !important;
}

.input-group input:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.login-btn {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white !important;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-btn * {
    color: white !important;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(42, 82, 152, 0.3);
}

.error-message {
    background: #ff6b6b;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
}

/* Background Animation */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
}

.particle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    top: 80%;
    left: 10%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    top: 30%;
    left: 70%;
    animation-delay: 1s;
}

.particle:nth-child(5) {
    top: 70%;
    left: 30%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 1; }
    33% { transform: translateY(-30px) rotate(120deg); opacity: 0.8; }
    66% { transform: translateY(30px) rotate(240deg); opacity: 0.8; }
}

/* Dashboard Styles */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: #0f0f23;
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-right: 1px solid #2a2a3e;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid #2a2a3e;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-header i {
    font-size: 2rem;
    color: #00d4ff;
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.nav-menu {
    flex: 1;
    list-style: none;
    padding: 1rem 0;
}

.nav-item {
    margin: 0.25rem 1rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: #b0b0c9;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    transform: translateX(5px);
}

.nav-item.active .nav-link {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid #2a2a3e;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #b0b0c9;
    position: relative;
}

.user-avatar-container {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.username-small {
    font-size: 0.8rem;
    color: #888;
}

.edit-profile-btn {
    background: none;
    border: none;
    color: #b0b0c9;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.edit-profile-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #00d4ff;
}

.logout-btn {
    width: 100%;
    background: transparent;
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.logout-btn:hover {
    background: #ff6b6b;
    color: white;
}

.main-content {
    margin-left: 280px;
    flex: 1;
    padding: 2rem;
    background: #0f0f23;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
}

.section-header p {
    color: #b0b0c9;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.dashboard-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #2a2a3e;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: #00d4ff;
}

.card-icon {
    font-size: 3rem;
    color: #00d4ff;
    margin-bottom: 1rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.card-content p {
    color: #b0b0c9;
    margin-bottom: 1rem;
}

.card-badge {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Recent Activity */
.recent-activity {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #2a2a3e;
    border-radius: 16px;
    padding: 2rem;
}

.recent-activity h2 {
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 8px;
    border-left: 3px solid #00d4ff;
}

.activity-item i {
    color: #00d4ff;
}

.activity-item time {
    margin-left: auto;
    color: #b0b0c9;
    font-size: 0.9rem;
}

/* Chat Styles */
.chat-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #2a2a3e;
    border-radius: 16px;
    height: 70vh;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 75%;
    word-wrap: break-word;
    width: fit-content;
    margin-bottom: 1rem;
}

.chat-message.own {
    align-self: flex-end;
}

.chat-message.own .message-bubble {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: white;
}

.message-bubble {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 18px;
    border-bottom-right-radius: 6px;
    margin-bottom: 0.5rem;
    width: fit-content;
    max-width: 100%;
    word-wrap: break-word;
    white-space: pre-wrap;
    position: relative;
}

.chat-message {
    position: relative;
}

.chat-message:hover .message-actions {
    opacity: 1;
    visibility: visible;
}

.message-actions {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    padding: 0.25rem 0.5rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.message-action-btn {
    background: none;
    border: none;
    color: #b0b0c9;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.message-action-btn:hover {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.2);
}

.message-action-btn.delete:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.2);
}

.message-action-btn.liked {
    color: #ff6b6b;
}

.message-likes {
    position: absolute;
    bottom: -20px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #ff6b6b;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.chat-image {
    max-width: min(400px, 60vw);
    max-height: 300px;
    min-width: 120px;
    min-height: 80px;
    width: auto;
    height: auto;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.chat-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.image-caption {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.9rem;
    border-radius: 12px;
    margin-top: 0.5rem;
    width: fit-content;
    max-width: min(400px, 60vw);
}

.instruction-message {
    background: rgba(0, 212, 255, 0.1) !important;
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #00d4ff !important;
    width: auto !important;
    max-width: fit-content !important;
    min-width: auto !important;
    padding: 0.75rem 1rem !important;
    margin: 1rem auto !important;
    text-align: center;
    font-style: italic;
}

.chat-message.own .message-bubble {
    border-bottom-right-radius: 18px;
    border-bottom-left-radius: 6px;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-default {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.message-author-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.message-author {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.9rem;
}

.message-time {
    font-size: 0.75rem;
    color: #b0b0c9;
}

.message-content {
    margin-left: 0.5rem;
}

.chat-message.own .message-header {
    flex-direction: row-reverse;
}

.chat-message.own .message-content {
    margin-left: 0;
    margin-right: 0.5rem;
    align-self: flex-end;
}

.chat-message.own .message-author-info {
    align-items: flex-end;
}

.chat-input-container {
    padding: 1.5rem;
    border-top: 1px solid #2a2a3e;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.attach-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #2a2a3e;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: #b0b0c9;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.attach-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    color: #00d4ff;
}

#chat-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 1px solid #2a2a3e;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    font-size: 1rem;
}

#chat-input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

#chat-input:focus {
    outline: none;
    border-color: #00d4ff;
}

.send-btn {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-btn:hover {
    transform: scale(1.1);
}

/* Notes Styles */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.note-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #2a2a3e;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.note-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.note-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.note-priority {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.note-priority.high {
    background: #ff6b6b;
    color: white;
}

.note-priority.medium {
    background: #ffa726;
    color: white;
}

.note-priority.low {
    background: #66bb6a;
    color: white;
}

.note-content {
    color: #b0b0c9;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.note-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #b0b0c9;
}

.note-actions {
    display: flex;
    gap: 0.5rem;
}

.note-actions button {
    background: none;
    border: none;
    color: #b0b0c9;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.note-actions button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #00d4ff;
}

/* Files Styles */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.file-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #2a2a3e;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.file-icon {
    font-size: 3rem;
    color: #00d4ff;
    margin-bottom: 1rem;
}

.file-name {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.file-size {
    color: #b0b0c9;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.file-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.file-actions button {
    background: none;
    border: 1px solid #00d4ff;
    color: #00d4ff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-actions button:hover {
    background: #00d4ff;
    color: white;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

/* Confirmation Modal Styles */
.confirmation-modal {
    z-index: 2000;
}

.confirmation-content {
    max-width: 400px;
    width: 90%;
}

.confirmation-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #2a2a3e;
}

.confirmation-header h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin: 0;
}

.confirmation-body {
    padding: 1.5rem;
    text-align: center;
}

.confirmation-body p {
    color: #b0b0c9;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.confirmation-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #2a2a3e;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.confirmation-footer button {
    min-width: 100px;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #2a2a3e;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #2a2a3e;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #ffffff;
    font-size: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    color: #b0b0c9;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ff6b6b;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #2a2a3e;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Admin Styles */
.admin-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.admin-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #2a2a3e;
    border-radius: 16px;
    padding: 2rem;
}

.admin-card h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.add-user-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.add-user-form input {
    flex: 1;
    min-width: 150px;
    padding: 0.75rem;
    border: 1px solid #2a2a3e;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
}

.add-user-form input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.add-user-form input:focus {
    outline: none;
    border-color: #00d4ff;
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid #2a2a3e;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #2a2a3e;
    text-align: center;
}

.stat-label {
    display: block;
    color: #b0b0c9;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    color: #00d4ff;
    font-size: 2rem;
    font-weight: 700;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #b0b0c9;
    border: 1px solid #2a2a3e;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #00d4ff;
    color: #00d4ff;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #2a2a3e;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.form-group select option {
    background: #1a1a2e;
    color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Pin Board Styles */
.pins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.pin-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #2a2a3e;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: 150px;
}

.pin-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.pin-card.pin-blue { border-left: 4px solid #00d4ff; }
.pin-card.pin-green { border-left: 4px solid #66bb6a; }
.pin-card.pin-yellow { border-left: 4px solid #ffa726; }
.pin-card.pin-red { border-left: 4px solid #ff6b6b; }
.pin-card.pin-purple { border-left: 4px solid #9c27b0; }
.pin-card.pin-orange { border-left: 4px solid #ff9800; }

.pin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.pin-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.pin-content {
    color: #b0b0c9;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.pin-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #b0b0c9;
    margin-top: auto;
}

.pin-actions {
    display: flex;
    gap: 0.5rem;
}

.pin-actions button {
    background: none;
    border: none;
    color: #b0b0c9;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.pin-actions button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #00d4ff;
}

/* Profile Management Styles */
.profile-picture-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.current-profile-picture {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.current-profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.current-profile-picture i {
    font-size: 2rem;
    color: white;
}

.profile-picture-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Image Preview Modal */
.image-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: pointer;
}

.image-preview-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .admin-container {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .login-card {
        margin: 1rem;
        padding: 2rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .notes-grid {
        grid-template-columns: 1fr;
    }
    
    .files-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .add-user-form {
        flex-direction: column;
    }
    
    .chat-message {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem;
    }
    
    .login-card {
        padding: 1.5rem;
    }
    
    .dashboard-card,
    .note-card,
    .file-card,
    .admin-card {
        padding: 1rem;
    }
    
    .sidebar-header {
        padding: 1rem;
    }
    
    .sidebar-header h2 {
        font-size: 1.2rem;
    }
}
