/* projects.css */

/* Projects Grid Layout */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Glassmorphism Project Card */
.project-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.project-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.project-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    flex-grow: 1;
}

.project-link {
    display: inline-block;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    text-align: center;
    transition: background 0.2s ease;
    border: none !important;
}

.project-link:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Admin Panel Styling */
.admin-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.admin-btn {
    border: none !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-size: 0.8rem !important;
    cursor: pointer;
    transition: background 0.2s !important;
}

.admin-btn.delete {
    background: rgba(244, 67, 54, 0.2) !important;
    color: #f44336 !important;
}

.admin-btn.delete:hover {
    background: rgba(244, 67, 54, 0.5) !important;
    color: #fff !important;
}

#admin-login-view,
#admin-dashboard-view {
    transition: opacity 0.3s ease;
}

/* Alert Boxes */
.alert {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    display: none;
}

.alert.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #ffb4b4;
}

.alert.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4caf50;
    color: #bbf7d0;
}